Mongodb driver linq query converting to aggregate command instead of find
Answers
beginer
1544
Points
52
Posts
|
Yes, you are right as per mongodb documentation Linq intended to use Aggregate framework, here we can refer : https://mongodb.github.io/mongo-csharp-driver/2.11/reference/driver/crud/linq/ "The driver contains an implementation of LINQ that targets the aggregation framework. The aggregation framework holds a rich query language that maps very easily from a LINQ expression tree making it straightforward to understand the translation from a LINQ statement into an aggregation framework pipeline."
Posted On:
31-Dec-2021 05:54
|
Rahul M...
4918
Points
28
Posts
|
I think, there is way to map to find query. For this we can use fluent find interface on MongoDb driver: And we can use it as:
Posted On:
04-Jan-2022 22:10
|
Blog
Active User (0)
No Active User!