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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摑 fixed confusing sentence in Schema docs #9914

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

namenyi
Copy link
Contributor

@namenyi namenyi commented Feb 10, 2021

Summary

I've found a sentence in the Schema Aliases section that seems to be mistaken and confusing.


Now accessing `name` will get you the value of `n`, and setting `n` will set the value of `name`

I think it should say setting `name` will set the value of `n` .

The example a few lines below also supports my assumption:

person.name = 'Not Val';
console.log(person); // { n: 'Not Val' }

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 馃憤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants