apollo-storybook-decorator
apollo-storybook-decorator copied to clipboard
Add 'addTypeName={false}' support
I may be doing something wrong or I've missed something in the documentation but when passing back mocked data through a nested Mutation component the objects have a __typename: "<type>"
property and therefore do not match the schema.
As mentioned here the addTypeName option of the Apollo MockedProvider allows you to turn off the typename annotations. Is this possible to do with apollo-storybook-decorator?
hi @robinelvin, looks like we are defaulting to true here https://github.com/abhiaiyer91/apollo-storybook-decorator/blob/master/packages/apollo-storybook-core/src/index.js#L81
We can make this configurable. PRs are welcome!!