UNPKG

@omnigraph/json-schema

Version:

This package generates GraphQL Schema from JSON Schema and sample JSON request and responses. You can define your root field endpoints like below in your GraphQL Config for example;

7 lines (6 loc) 331 B
import { JSONSchemaObject } from '@json-schema-tools/meta-schema'; import { SchemaComposer } from 'graphql-compose'; export declare function getStringScalarWithMinMaxLength({ schemaComposer, subSchema, }: { schemaComposer: SchemaComposer; subSchema: JSONSchemaObject; }): import("graphql-compose").ScalarTypeComposer<any>;