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) 421 B
import type { JSONSchemaObject } from 'json-machete'; import type { AddExecutionLogicToComposerOptions } from './addExecutionLogicToComposer.cjs'; export declare function getGraphQLSchemaFromDereferencedJSONSchema(subgraphName: string, opts: Omit<AddExecutionLogicToComposerOptions, 'schemaComposer'> & { fullyDeferencedSchema: JSONSchemaObject; handlerName: string; }): Promise<import("graphql").GraphQLSchema>;