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

Utilize query.lean() to get plain objects. #24

Closed
marshallswain opened this issue Oct 27, 2015 · 2 comments
Closed

Utilize query.lean() to get plain objects. #24

marshallswain opened this issue Oct 27, 2015 · 2 comments

Comments

@marshallswain
Copy link
Member

We need to call query.lean() before execution to save resources. It's the same result as .toJSON, but it makes the query just return the JSON so there's no converting necessary. If we need the Mongoose model objects, we can convert later.

@ekryski
Copy link
Member

ekryski commented Oct 27, 2015

Rather than repeat myself. See my response in feathersjs-ecosystem/feathers-hooks#23

@marshallswain
Copy link
Member Author

Related to #25. Closing.

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