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
134 stars 46 forks source link

feat: dynamic generation mode #86

Closed JimmyPaolini closed 2 years ago

JimmyPaolini commented 2 years ago

Adding a configuration option dynamic?: boolean that defaults to false and makes no changes to the output, but when set to true generates mock values dynamically at run time (when a mock function is called), rather than statically at build time (when a mock function is generated).

https://github.com/ardeois/graphql-codegen-typescript-mock-data/issues/85

JimmyPaolini commented 2 years ago

@ardeois Let me know what you think of this solution for issue #85!