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 learning @mswjs/data and my returning data is returning as undefined whenever I tried to query my db. I am trying to mock the api from Shopify's storefront playground. I'm inexperienced with GraphQL and even more so with this library, so I suspect I may have been defining my model dictionary incorrectly, writing my query incorrectly, or both. Here're the snippets:
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 folks,
I'm learning @mswjs/data and my returning data is returning as undefined whenever I tried to query my db. I am trying to mock the api from Shopify's storefront playground. I'm inexperienced with GraphQL and even more so with this library, so I suspect I may have been defining my model dictionary incorrectly, writing my query incorrectly, or both. Here're the snippets:
index.tsx
db.ts
And here's my repository incase, you need it.
https://github.com/do-kevin/art-commerce/tree/5bcfbcb48025f2c2438e4ae10f4e9ae7f92f02ed
Beta Was this translation helpful? Give feedback.
All reactions