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
'path' field in subelement causes exception #1245
Comments
@daeq I'm actually having trouble reproducing this now. I don't want to rollback the commit though unless I know definitively. Do you have any more information to reproduce? |
I create file test.js with this contents: var mongoose = require('mongoose');
var EmbeddedScm = mongoose.Schema({
path: String
});
var Scm = mongoose.Schema({
subElements: [EmbeddedScm]
}); Then:
I get:
Node.js version is 0.8.8 When i install mongoose from |
ok got it. thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After update to version 3.5.0 i got an error, which is caused by field named
path
in one of my models' subelement.Here is sample code, producing error:
I get:
This error didn't exist in version 3.4.0. So I think it was introduced in one of latest commits.
I'll try to figure it out and propose patch, but maybe you could do it faster.
The text was updated successfully, but these errors were encountered: