-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
implement findAndModify #211
Conversation
src/types.ts
Outdated
*/ | ||
export interface FindAndModifyOptions<T> { | ||
/** | ||
* Control the order in which documents are found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align those comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Those must've slipped under the radar.
LGTM, a little formatting problem |
I forgot something, can you add a test for the new method? |
I'll give it a go. It'll probably take a few days, because I'll have to figure out the best way to to that first. |
OK, that was quicker, than expected. I added two test cases, one for the update and one for the delete case. |
@DerNamenlose ci failed |
Fixed. Funny enough: my |
Maybe it's a problem with the Deno version |
I need the
findAndModify
operation for a project, so I figured I'd try and contribute it to the driver.This also adds a few interfaces to lock down the interface in terms of types, that could be re-used in other existing interfaces like
findOne
, although I didn't change those yet.