graphql-data-generator
JSON →GraphQL testing utility for generating mock data objects and operation mocks from your schema, with TypeScript types. Current stable version is 0.4.7, with weekly releases on npm. It combines generated types, patching mechanisms, and customizable transforms for common object variations. Key differentiators: built-in mock coverage assertions, array helpers like `next` and `last`, and a `MockedProvider` wrapper for Apollo Client with better stack traces, making it more comprehensive than simple faker-based mocks. Requires peer dependencies graphql, @graphql-tools/graphql-tag-pluck, react, @types/react, @apollo/client 3, @testing-library/dom, and @testing-library/react.
Resources
packagegraphql-data-generator ↗
API endpoints
full doc /v1/registry/graphql-data-generator