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

Add the justOne option to the remove method. #63

Merged
merged 3 commits into from
Jun 20, 2013
Merged

Add the justOne option to the remove method. #63

merged 3 commits into from
Jun 20, 2013

Conversation

sorribas
Copy link
Collaborator

This adds the justOne option to the remove method as documented here

http://docs.mongodb.org/manual/reference/method/db.collection.remove/#db.collection.remove

I also added some tests for the remove method as there wasn't any. I am testing both behavios of the remove function (with and without the justOne parameter). This fixes #60

@sorribas
Copy link
Collaborator Author

Any particular reason this hasn't been merged? Anything I can make to improve it?

@sorribas
Copy link
Collaborator Author

Ok I'll get on these as soon as I have a bit of time :)

@sorribas
Copy link
Collaborator Author

I think that should do it :)

@mafintosh
Copy link
Collaborator

Looks great - thank you.

mafintosh added a commit that referenced this pull request Jun 20, 2013
Add the justOne option to the remove method.
@mafintosh mafintosh merged commit c5a3bf2 into mongo-js:master Jun 20, 2013
@mderazon mderazon mentioned this pull request Jun 24, 2015
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

Successfully merging this pull request may close these issues.

Remove only one document?
2 participants