Original post

i’m trying to dynamically do a find in mongo with the new driver. bson.M{“key” : “value”} works fine but the second I try to do bson.M{“key” : variable} it breaks. Documentation/tutorials are saying that this search now has to be a bson/primitive I think?

not sure exactly where to begin to understand whats going on.