You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Also, I'm getting an ErrorUncaught (in promise) Graphcache Error because the second schema have a type that doesn't exist in the first schema:
Invalid Object type: The type MessageResponse is not an object in the defined schema, but the GraphQL document is traversing it.
(Caused At: "forgotPassword" mutation, "MessageResponseFragment" Fragment) https://bit.ly/2XbVrpR#3
I think it's because I'm passing the schema to the cacheExchangeURQL.
It will be great if I can pass an ID to the client in order to call other URQL client, like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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