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: rework several code examples that still use callbacks #13635

Merged
merged 3 commits into from Jul 20, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13616

Summary

#13616 pointed out one example in our docs that still uses callbacks. That's a problem now that 7.x dropped support for callbacks. I also found a few other spots where we still use callbacks in the docs, this PR fixes those.

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.

Looks good to me, aside from one line

should we maybe work on having those code examples also be documentation tests? (acquit)

docs/middleware.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 Jul 20, 2023
@vkarpov15
Copy link
Collaborator Author

Ideally yes. We have an issue to track moving code examples to acquit in #3392, but I'd rather not prioritize that issue right now.

@vkarpov15 vkarpov15 merged commit d246223 into master Jul 20, 2023
20 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13616 branch July 20, 2023 14:46
@vkarpov15 vkarpov15 added this to the 7.4.1 milestone Jul 20, 2023
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.

Documentation not updated- 'Model.insertMany() no longer accepts a callback');
2 participants