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

Make sure create many works with lean:true. Follow up on #160 #161

Closed
marshallswain opened this issue Feb 3, 2017 · 2 comments · Fixed by #186
Closed

Make sure create many works with lean:true. Follow up on #160 #161

marshallswain opened this issue Feb 3, 2017 · 2 comments · Fixed by #186

Comments

@marshallswain
Copy link
Member

marshallswain commented Feb 3, 2017

Follow up work after #160

We need to make sure create is returning the correct type of object whether lean is on or off. @daffl ran into an issue with this.

@ekryski
Copy link
Member

ekryski commented Feb 27, 2017

@marshallswain what was the issue? Is this still relevant?

@daffl
Copy link
Member

daffl commented Feb 27, 2017

Yes. Something like

mongooseService.create([{
  name: 'David'
}, {
  name: 'Eric'
}, {
  name: 'Marshall'
}]);

Might still return Mongoose models (haven't tested it though).

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 a pull request may close this issue.

3 participants