enforcing pagination in relational resolvers #440
Unanswered
shawnjones253
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@MichalLytek -- would you be open to a PR if I could find an elegant way to work this into the generator? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bumping, curious if there's any blessed way to customize these relational resolvers at all a la middleware or something. If we were to take a stab at a PR for this, what do you think is the best place to hook into @MichalLytek ? I'm torn between pursuing a configuration option in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to enforce pagination or the usage of "take" with a maximum value?
For context, we're using the generated relational resolvers currently, but are hoping to implement graphql amount limiting / pagination across the API. Something similar to this.
In resolvers we've written ourselves, I'd simply replace the type of
take
in anyargs
with something likecreateIntScalar
from here.I'm hoping (though it doesn't look possible) there is a way to do this without completely abandoning the auto-generated relational resolvers.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions