Multiple graphql schema in Nuxt #3380
albertcito
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with vue (nuxt). Currently I have two schemas with graphql. In order to make it works I send my request and update the context with the other schema URL, like:
But I'm getting this warning: Invalid field: The field
myMutation
does not exist onMutation
...Also, I'm getting an Error
Uncaught (in promise) Graphcache Error
because the second schema have a type that doesn't exist in the first schema:I think it's because I'm passing the
schema
to thecacheExchangeURQL
.It will be great if I can pass an ID to the client in order to call other URQL client, like:
I that way I can have two client, with my two+ schemas.
I think maybe my only solution for now is override the useClientHandle and useClient functions in order to make it work with multiple schemas.
Beta Was this translation helpful? Give feedback.
All reactions