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 tried to create two clients, one for Contentful and one for Shopify and adding a custom resolver with the same logic, but unfortunately it seems like urql resolvers can't be async.
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
-
Hey, thanks for this fabulous lib.
I have a question that may show my ignorance in GraphQL, but I can't really find a solid answer for it.
I have a CMS (Contentful) with entries that link to a Shopify product. When I fetch the Contentful entry, it returns the id of the product in Shopify.
Ideally, what I'd love to do is:
In Gatsby, I'm able to create a resolver like this one:
I tried to create two clients, one for Contentful and one for Shopify and adding a custom resolver with the same logic, but unfortunately it seems like urql resolvers can't be async.
I've found a very similar usecase using Apollo and I was curious to know if the same was possible with urql.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions