Using buildSchema multiple times for different resolver paths on same server #843
Answered
by
MichalLytek
tugaykaracay
asked this question in
Q&A
-
Hi I would like host multiple graphql endpoints on same express server on different paths but when I use buildSchema for second time it also contains previously loaded schema's types/queries/mutations. Is there any way to clear previously loaded schema cache before loading next one? This is my load schema function:
|
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Apr 1, 2021
Replies: 1 comment 1 reply
-
You need to provide the resolvers array manually. Using resolversPath is not supported for multiple schemas mode. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tugaykaracay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to provide the resolvers array manually. Using resolversPath is not supported for multiple schemas mode.