Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
2.10.3
-
None
-
None
Description
Reporting this as a bug BUT i would have expected the linq query to generate the same qeury under the covers as the find query. Instead the linq query is generating an aggregation pipeline.
```
var document = GetCollection<MediaDocument>()
.Find(x => x.ImageUniqueIdentifier == imageUniqueIdentifier)
.FirstOrDefault();
```
```
var document = GetCollection<MediaDocument>()
.AsQueryable()
.Where(x => x.ImageUniqueIdentifier == imageUniqueIdentifier)
.FirstOrDefault();
```