GraphQLGuide / apollo-datasource-mongodb

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

Plans to add more to API? #25

Closed Nachlawi closed 4 years ago

Nachlawi commented 4 years ago

Are there plans to add more to the API such as finding by more than id?

Maybe an option to find and findOne which accepts an object as the criteria, e.g.

this.find({ datetime: 1587036888 }, { ttl }) and this.findOne({ datetime: 1587036888 }, { ttl })

Also there are other useful methods like findOneAndUpdate?

lorensr commented 4 years ago

No plans atm. You're welcome to contribute to #1 or #2, and I'd review a PR. Otherwise, the full Mongo API is available under this.collection.