A library that infers a GraphQL schema from example JSON data, generating types, queries, and mutations. Version 0.0.3 is the latest. It guesses types, relationships (based on field naming like `*_id`), and provides CRUD operations with pagination and filtering. Release cadence is low, with few updates. Key differentiator: zero-config schema generation from sample data, useful for prototyping or mocking APIs.
npm install graphql-schema-from-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to generate a GraphQL schema from sample JSON data and print it using graphql library.
Use latest version 0.0.3.
Ensure JSON data includes 'id' fields for each entity.
Add a custom Date scalar resolver to your GraphQL server.
Use `import getSchemaFromData from 'graphql-schema-from-json'` instead of `import { getSchemaFromData } from '...'`Run `npm install --save graphql`.
Ensure data is an object where each key maps to an array of objects with 'id' fields.