Get PagingOptions
in custom middleware
#6088
Unanswered
Chuan-Yang
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I am trying to build my own paging arguments for queries, but at the same time, I would like to modify its max and default page size using
SetPagingOptions
that HotChocolate provides. So my current solution is to use custom middleware. But my question would be:PagingOptions
in the custom middleware? What I have currently is to hardcode the value in my middleware, which is super bad :(Query.cs
? I assume request middleware would help here, but since I couldn't figure out question 1, so I am kinda blocked here.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions