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
Hi! I'm trying to write mocks for my API - I've got a frontend app and its requests go through a mock server.
(app - mock_server - real_server). On the mock_server i would like to add new types and extend existing ones.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm trying to write mocks for my API - I've got a frontend app and its requests go through a mock server.
(
app - mock_server - real_server). On themock_serveri would like to add new types and extend existing ones.I've made a simple demo illustrating my issues: https://github.com/janKozie1/graphql-tools-example
Basically:
addMocksToSchemadoes it, but I'm not sure how to use while stitching (https://github.com/janKozie1/graphql-tools-example/blob/591b85614fb3de249a9f2c2f5182729f1aebfc61/mock_server/schema/stitches/index.js#L18)Book.commentsdefined in the same file doesAny help will be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions