How to add a custom resolver? #121
Answered
by
MichalLytek
ncunningham-stairsupplies
asked this question in
Q&A
-
Im going through the process of adding a customer resolver to the generated resolvers. Im stuck at adding the type for the context. Im not sure where that would be located? |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
May 27, 2021
Replies: 1 comment 2 replies
-
Type for the context can be located in any file you want. You just need to import it when you want to create context object in a type-safe way. Check the docs of Apollo Server or other lib you use for exposing GraphQL schema to the world. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MichalLytek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type for the context can be located in any file you want. You just need to import it when you want to create context object in a type-safe way. Check the docs of Apollo Server or other lib you use for exposing GraphQL schema to the world.