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

feat: query document mocks #98

Closed AlexPla closed 1 year ago

AlexPla commented 1 year ago

Add a parameter to aQuery generated function to pass a query DocumentNode object and receive that query response without unnecessary information.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ardeois commented 1 year ago

Oops sorry I didn't have time to check this PR, I'll try to look at it soon. Meanwhile, I'm reopening

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Jonghakseo commented 1 year ago

wow. This is a needed feature. It would be nice if we could mock based on queries and fragments.

foilstormcrow commented 1 year ago

+1 to the above. I'm looking at integrating this into a project and this is definitely a feature we need before it's really viable for us. Is there any sort of timeline as to when this might be available?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.