I run this query in mongo console, and it work fine
db.entities.find({$and: [{"entityType.value":9},{entityId:{$gte:"1998852"}},{entityId:{$lt:"2210000"}}]}).sort({entityId:1})
Then, I trying to write in golang but dont works.
db.C("entities").Find(query).All(&result)
Some idea to do that??