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(middleware): explain how to access query and save() parameters in middleware #13532

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13498

Summary

Middleware docs right now use a lot of console.log('Hi') examples for middleware, which isn't very useful because typically you want to access some params from the operation that triggered the middleware. This PR adds an example of how to access query filter and update; as well as how to access save options.

Examples

@vkarpov15 vkarpov15 merged commit 49dd7e4 into master Jun 21, 2023
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13498 branch June 21, 2023 12:10
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

Successfully merging this pull request may close these issues.

docs: add example of accessing save options in pre save
2 participants