when i create a filter with eg.
filter := bson.D{
{Key: consts.DaoReference, Value: reference},
{Key: consts.DaoVersion, Value: bson.M{“$gt”: int32(version)}}}
the driver wraps the query into
{“Reference”:“…”,“Version”:{“$gt”:{“$numberInt”:“0”}}}
i needed {“Reference”:“…”,“Version”:{“$gt”:“0”}} instead - the two query doesn’t response with the same result