Last active
April 17, 2022 18:54
-
-
Save countnazgul/4f2c2f7d6d90c6b9162f to your computer and use it in GitHub Desktop.
[Filter specific fields in query] #mongo #mongoose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.find({}, 'first last', function (err, usr) { | |
//Got the result, saved a few bytes of code | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment