I saw a different syntax for bson in Help golang Aggregate Query
And like I wrote I do not know golang but I feel that
bson.M{ "priority" : -1 , "_id" : 1}
might be the correct way to specify the sort you want.
I saw a different syntax for bson in Help golang Aggregate Query
And like I wrote I do not know golang but I feel that
bson.M{ "priority" : -1 , "_id" : 1}
might be the correct way to specify the sort you want.