I would like to run the following query in golang using mgo in a pipeline.
{\"key1\" : 1, \"$or\" : [{\"key2\" : 2}, {\"key3\" : 2}]}
I have l
go lang Mongo db Or query
findQuery := bson.M{"key1" : 1} orQuery := []bson.M{} orQuery := append(orQuery, bson.M{"key2" : 2}, bson.M{"key3" : 2}) findquery["$or"] = orQuery result := []interface{} err := mongo.DB.C("collectionName").find(findQuery).All(&result)