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
133 stars 47 forks source link

fix: generate Query and Mutation mocks #57

Closed ardeois closed 2 years ago

ardeois commented 2 years ago

While these types should not be used very often, it can happen another mock references a Query or Mutation type. Which means we'll declare a property value with aQuery or aMutation

That's why we need to define those types

Fixes #42