graphql-codegen-factories icon indicating copy to clipboard operation
graphql-codegen-factories copied to clipboard

Generate factories from a GraphQL schema and operations to mock data.

Results 13 graphql-codegen-factories issues
Sort by recently updated
recently updated
newest added

When generating factories based on GitHub's GraphQL schema, I noticed errors for some union factories, e.g: ```ts export function createBranchActorAllowanceActorMock( props: Partial = {} ): Types.BranchActorAllowanceActor { switch (props.__typename) {...

bug

Currently schemaFactoriesPath automatically adds `./` at its start when it doesn't start with a `.`. It makes it impossible to reference a node module. [`near-operation-file-preset` makes it possible to do...

bug

Another DX improvement idea, what I have in the code now is similar to this: ```ts createBlogListQueryQueryMock_node({ parsedHeadline: createBlogListQueryQueryMock_parsedHeadline({ childMarkdownRemark: createBlogListQueryQueryMock_parsedHeadline_childMarkdownRemark({ html: 'This is pizza', }) }) }) ``` What...

enhancement