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

docs(models): add section on MongoDB Views #12526

Merged
merged 2 commits into from Oct 5, 2022
Merged

Conversation

vkarpov15
Copy link
Collaborator

Fix #5694

Summary

Right now there isn't any info on the docs on how to use Mongoose with MongoDB views. Admittedly I haven't used views in production, so I can't say I'm an expert on the subject. But this new docs section at least demonstrates how to get started with creating a new View in Mongoose.

I also replaced h2 with h1 and h3 with h2 in the models docs, because it doesn't make much sense for the main title of the page to be an h2.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM

docs/models.md Outdated Show resolved Hide resolved
@hasezoey hasezoey added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Oct 5, 2022
docs/models.md Outdated Show resolved Hide resolved
Co-authored-by: hasezoey <hasezoey@gmail.com>
@vkarpov15 vkarpov15 merged commit 7573398 into master Oct 5, 2022
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-5694 branch October 5, 2022 15:30
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.

Is there a way we can handle views with mongoose !?
3 participants