Skip to content

Cannot figure out how to Resolver Composition Transform code to fire. #2084

Answered by ardatan
Davenporten asked this question in Q&A
Discussion options

You must be logged in to vote

Could you try it like below? Because it seems you're exporting the function as isAuth named export.

    transforms:
      - resolversComposition:
          compositions:
            - resolver: "Query.*"
              composer: ./src/is-auth#isAuth # << Could you add isAuth?
            - resolver: "Mutation.*"
              composer: ./src/is-auth#isAuth

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Davenporten
Comment options

Answer selected by ardatan
Comment options

You must be logged in to vote
5 replies
@ardatan
Comment options

@hboylan
Comment options

@ardatan
Comment options

@hboylan
Comment options

@ardatan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants