In node.js, when I use Mongoose:
is it possible to only fetch some of the values of a large object?
Is it possible to only update some of the values?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To fetch only certain fields, pass a string of field names as the second parameter in your
find:or use the object notation as described here:
To only update some of the properties, use an
updatewith a$setmodifier: