graphql-codegen-factories
graphql-codegen-factories copied to clipboard
Generate factories from a GraphQL schema and operations to mock data.
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) {...
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...
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...