Replies: 1 comment 1 reply
-
Would you create a PR with a failing test case? So we can continue from that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I've been trying to move from directives in the schema to resolvers composition for simplification and easiness.
Example in documentation claims that I can use glob matching pattern to be able to define multiple fields to be affected by same resolver pipeline:
Query.{first, second}: [Auth()}
So I assumed I can do something like this:
[
Mutation.{${UserAccessMutations.join(', ')}}]: [Auth()]
And I've discovered that actually resolver compositions can work with only 2 fields. So if I need more, I should do a lot of code duplication.
This is really not as handy as it may be. Why there is such a limitation? Maybe we can put this as a feature request?
Beta Was this translation helpful? Give feedback.
All reactions