GraphQLGuide / apollo-datasource-mongodb

Apollo data source for MongoDB
MIT License
285 stars 64 forks source link

Allow specifiying mongodb find options #85

Open Timeraa opened 3 years ago

Timeraa commented 3 years ago

When the DataLoader runs the mongodb query it should allow the user to specify some options like projection as you don't need to cache/fetch fields that you don't use in your queries.

lolo-io commented 2 years ago

I agree. Unfortunately the lack of options makes this datasource implementation too limited for my app.

Timeraa commented 2 years ago

If it helps, I made my own adaption of it here, it includes projection as it's features as well as we highly depend on it.