How to add my functionality before and after pagination, filtering, sorting and projection? #11055
Closed
vvitkovsky
started this conversation in
General
Replies: 2 comments
-
I have found one approach. Is this the correct one:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This isn’t really an aspire question you’ll have more luck asking on the hot chocolate repository |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, HotChocolate experts. I kindly need some help with this issue:
The question is - how to add my own logic before the query (caching) and after the query (cache update)?
I tried to build my own middleware, but the problem is that I can't get into a state where the filtering, paging, and projection are already applied. Example of my middleware:
I want to add my own caching before processing the request (that can be done with the mentioned middleware), but how can I update my cache with the final result after filtering, paging, sorting, etc.?
Best regards,
Victor
Beta Was this translation helpful? Give feedback.
All reactions