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

invalid properties get saved #644

Closed
aheckmann opened this issue Dec 12, 2011 · 4 comments
Closed

invalid properties get saved #644

aheckmann opened this issue Dec 12, 2011 · 4 comments

Comments

@aheckmann
Copy link
Collaborator

var t = new Thing({ thisPropertyIsNotInTheSchema: true });
t.save() // that property gets saved to the db
@tblobaum
Copy link

Contrasting with...

var t = new Thing(); 
t.notInSchema = 'this gets filtered out'; 
t.save()

@aheckmann
Copy link
Collaborator Author

this will have to wait for the next major release since its likely people depend on this behavior

nw added a commit to nw/mongoose that referenced this issue Dec 16, 2011
@aheckmann
Copy link
Collaborator Author

resolved in #652

just need docs

@tblobaum
Copy link

thanks @aheckmann @nw !

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