-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: LINQ3
-
None
var result = Builders<BsonDocument>.Filter.Where(x => x["_id"].AsString != ""); var registry = BsonSerializer.SerializerRegistry; var serializer = registry.GetSerializer<BsonDocument>(); var mql = result.Render(serializer, registry, Linq.LinqProvider.V3);
the above generates incorrect mql:
{ "_id.AsString" : { "$ne" : "" } }
where "AsString" BsonDocument method is recognized as mql field name