You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For exemple, i see that after IMongoCollection we have access to .AsExecutable() extension method and afterwards this execution whe hav access to With options (WithSorting|WithFiltering|WithOptions|WithProjection) and WithProjection method expect an argument of type MongoDbProjectionDefinition, but how can i instantiate this definition?
There's no one reference in nowhere how to create(instantiate) that definition to be used by projection. Could someone provide a sample of how to do that?
Thanks!
The text was updated successfully, but these errors were encountered:
Though unless you really have big documents with tons of properties, you may not really see a performance benefit.
Projections are really only a benefit in mongodb when you have covered queries or big documents (and you want to reduce network traffic)
This is a good read: https://betterprogramming.pub/improve-mongodb-performance-using-projection-c08c38334269
Hello everyone!
Thanks for became this amazing solution avaliable for the .NET ecosystem.
I"m reading the documentation of "how use HotChocolate with MongoDb at projection level" but I did found any reference of how to use the projection itself.
For exemple, i see that after IMongoCollection we have access to .AsExecutable() extension method and afterwards this execution whe hav access to With options (WithSorting|WithFiltering|WithOptions|WithProjection) and WithProjection method expect an argument of type MongoDbProjectionDefinition, but how can i instantiate this definition?
There's no one reference in nowhere how to create(instantiate) that definition to be used by projection. Could someone provide a sample of how to do that?
Thanks!
The text was updated successfully, but these errors were encountered: