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;

6 lines (5 loc) 374 B
import { JSONSchemaObject } from 'json-machete'; import { AddExecutionLogicToComposerOptions } from './addExecutionLogicToComposer'; export declare function getGraphQLSchemaFromDereferencedJSONSchema(name: string, opts: Omit<AddExecutionLogicToComposerOptions, 'schemaComposer'> & { fullyDeferencedSchema: JSONSchemaObject; }): Promise<import("graphql").GraphQLSchema>;