EasyGraphQL Mock is a Node.js library that automatically generates mock data for any GraphQL schema, including nested types and custom scalars. Version 0.1.17 is the latest and only stable release. Key differentiators: simple API (single function), support for multiple schema files, and optional custom field values. No active development since 2018; use at your own risk for prototyping or testing.
npm install easygraphql-mockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import, read a schema file, and generate mock data with optional custom overrides.
Manually override fields with custom values where null is required, or validate generated data.
Always specify custom scalars: easygraphqlMock(schema, { MyScalar: 'some value' }).Use 'extend type Query { ... }' in all schema files except the primary one.Run 'npm install easygraphql-mock' in project root.
Use 'const easygraphqlMock = require('easygraphql-mock');'