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;

8 lines (7 loc) 304 B
import { SchemaComposer } from 'graphql-compose'; import { JSONSchemaObject } from '@json-schema-tools/meta-schema'; export declare function getValidTypeName({ schemaComposer, isInput, subSchema, }: { schemaComposer: SchemaComposer; isInput: boolean; subSchema: JSONSchemaObject; }): string;