Skip to content

Model#create does not return successfully created documents if one fails #2190

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

Closed
mbatista opened this issue Jul 12, 2014 · 0 comments
Closed
Milestone

Comments

@mbatista
Copy link

if you do something like

MyModel.create([data1,data2,data3], function(error, doc1, doc2, doc3){ }) and there was an error creating doc2 only, doc1 and doc3 will be created but will not be passed back to the callback function so we only have the error information but not the created documents information.
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

3 participants