ardeois / graphql-codegen-typescript-mock-data

[GraphQL Codegen Plugin](https://github.com/dotansimha/graphql-code-generator) for building mock data based on the schema.
MIT License
132 stars 47 forks source link

mocks - useImplementingTypes errors #121

Closed maord-upstream closed 1 year ago

maord-upstream commented 1 year ago

Hello,

In my codegenConfig file, I added the "useImplementingTypes" property for fix types, but now my mocks file contains errors.

For example: "The expected type comes from property 'foo' which is declared here on type '{ __typename: "TEST"; } & Test".

Could you please tell me how to fix this? Thanks

ardeois commented 1 year ago

Sorry but useImplementingTypes is currently not supported on this plugin

maord-upstream commented 1 year ago

Is there any plan to support this?

ardeois commented 1 year ago

Not at the moment, but feel free to open a PR if you want it

maordaniel commented 1 year ago

I've opened a PR, please review it.

ardeois commented 1 year ago

Implemented in 3.4.1