Cannot figure out how to Resolver Composition Transform code to fire. #2084
-
I've been trying to get Resolvers Composition Transform to work and I feel like I must be missing some piece because I cannot get my code that I'm passing to
installed and my
I've put my
When I run my server and hit different queries and mutations the console.log in the above code never fires and I never see Thanks in advance for any help! @ardatan I'm tagging you in here just because you responded to my issue with getting my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Could you try it like below? Because it seems you're exporting the function as transforms:
- resolversComposition:
compositions:
- resolver: "Query.*"
composer: ./src/is-auth#isAuth # << Could you add isAuth?
- resolver: "Mutation.*"
composer: ./src/is-auth#isAuth |
Beta Was this translation helpful? Give feedback.
-
This works perfectly for me, but I'm wondering... is it possible to set the status code 401 with the response? |
Beta Was this translation helpful? Give feedback.
Could you try it like below? Because it seems you're exporting the function as
isAuth
named export.