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

Modify schema syntax in exemple #13262

Merged
merged 1 commit into from Apr 10, 2023
Merged

Conversation

c-marc
Copy link
Contributor

@c-marc c-marc commented Apr 9, 2023

Summary

In Guide/Models doc, first code block, first line:

  • it seems { name: "string", size: "string" } is a valid syntax, but I had to run some code to confirm it is :)
  • in my opinion { name: String, size: String } would be more coherent with the rest of the doc (especially for new learners who might find this snippet confusing)

Examples

- it seems `{ name: "string", size: "string" }` is a valid syntax, but I had to run some code to confirm it is :)
- in my opinion `{ name: String, size: String }` would be more coherent with the rest of the doc (especially for new learners who might find this snippet confusing)
@c-marc c-marc changed the title Modify exemple and schema syntax Modify schema syntax in exemple Apr 9, 2023
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

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

Welcome @c-marc 👋
LGTM, thanks. 👍

@AbdelrahmanHafez AbdelrahmanHafez added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Apr 10, 2023
@AbdelrahmanHafez AbdelrahmanHafez added this to the 7.0.4 milestone Apr 10, 2023
@AbdelrahmanHafez AbdelrahmanHafez merged commit 7971a4d into Automattic:master Apr 10, 2023
@c-marc c-marc deleted the patch-1 branch April 10, 2023 17:10
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

2 participants