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
.Right now the key is
$urql
in provideClient, install and useClient. Would be great if that variable could be override in as a param. Like:I that way I can have two client, with my two+ schemas. Without any warning or error.
Beta Was this translation helpful? Give feedback.
All reactions