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