Replies: 1 comment
-
Oh it looks like that you didn't have to do anything with Yoga. I misunderstood how the schema works. |
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
-
I'm trying to figure out how to implement rate-limiting using Pothos + Yoga.
The docs recommends using graphql-rate-limit-directive, but I couldn't find a plugin for it for Yoga.
Yoga on the under hand supports rate-limiting via the useRateLimiter envelop plugin which uses graphql-rate-limit underneath. But I couldn't figure out a way to apply the directives to the Pothos schema. The docs uses
rateLimitDirectiveTransformer
fromgraphql-rate-limit-directive
, but I couldn't find an equivalent API ingraphql-rate-limit
.I would really appreciate some advice here.
Beta Was this translation helpful? Give feedback.
All reactions