We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When querying MongoDB data we don't want to send everything to the client (eg: password, _id).
password
_id
Right now we have a somewhat functional approach by declaring functions and deleting from them. Maybe we should try extending the Schema.toJSON() method: https://contactsunny.medium.com/hide-properties-of-mongoose-objects-in-node-js-json-responses-a5437a5dbec2
The text was updated successfully, but these errors were encountered:
iampava
No branches or pull requests
When querying MongoDB data we don't want to send everything to the client (eg:
password
,_id
).Right now we have a somewhat functional approach by declaring functions and deleting from them. Maybe we should try extending the Schema.toJSON() method: https://contactsunny.medium.com/hide-properties-of-mongoose-objects-in-node-js-json-responses-a5437a5dbec2
The text was updated successfully, but these errors were encountered: