Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans to add more to API? #25

Closed
Nachlawi opened this issue Apr 16, 2020 · 1 comment
Closed

Plans to add more to API? #25

Nachlawi opened this issue Apr 16, 2020 · 1 comment

Comments

@Nachlawi
Copy link

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
Copy link
Member

lorensr commented Apr 16, 2020

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.

@lorensr lorensr closed this as completed Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants