1stdibs / relay-mock-network-layer

Relay modern network layer that returns schema correct mock data
MIT License
36 stars 9 forks source link

Interface mocking support #4

Open hisapy opened 6 years ago

hisapy commented 6 years ago

In order to mock interfaces a developer should be able to pass preserveResolvers option to addMockFunctionsToSchema() inside getNetworkLayer().

The API would then look likegetNetworkLayer({schema, mocks, resolvers, preserveResolvers})

robrichard commented 6 years ago

@hisapy sorry for the delayed reply. I'd be happy to merge a PR with this change.