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

feat: allow users to specify the `prefix` of mock builders #25

Closed 3nvi closed 4 years ago

3nvi commented 4 years ago

This PR simply provides an option for users to specify the prefix that their mock builders will have.

Closes #22

Additional Context Initially I tried to implement the addPrefix option, but I saw that when omitting the prefix, the generator function names collided with the name of the existing TS types from @graphql-codegen/typescript. That's why a prefix must always be present.

This PR makes sure t

ardeois commented 4 years ago

@3nvi I'll try to test and merge your PRs tonight or tomorrow !

3nvi commented 4 years ago

@3nvi I'll try to test and merge your PRs tonight or tomorrow !

Cheers