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

Support for hidden field #140

Open
vailancio opened this issue Mar 23, 2018 · 0 comments
Open

Support for hidden field #140

vailancio opened this issue Mar 23, 2018 · 0 comments

Comments

@vailancio
Copy link

I have hidden password field. But populating reference user object still outputs hidden fields in JSON

[UserSchema.method('toJSON', function() { var user = this.toObject(); delete user.password; delete user.__v; return user; });]

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

1 participant