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

Fatal error when using a schema field named 'parent' #928

Closed
mappum opened this issue May 23, 2012 · 1 comment
Closed

Fatal error when using a schema field named 'parent' #928

mappum opened this issue May 23, 2012 · 1 comment

Comments

@mappum
Copy link

mappum commented May 23, 2012

When creating a Schema with a field named 'parent', an error is given along the lines of:

TypeError: Cannot read property 'states' of undefined

For example:

var schema = new Schema({
    parent: String
});
@aheckmann
Copy link
Collaborator

thanks for the report. tracking in #528

aheckmann added a commit that referenced this issue Jul 5, 2012
an error is throw an schema construction time if a
reserved pathname is added to a schema.

closes #928
vkarpov15 added a commit that referenced this issue Apr 6, 2020
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