@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;
4 lines (3 loc) • 369 B
text/typescript
import type { JSONSchemaLoaderOptions } from './types.cjs';
export declare function loadNonExecutableGraphQLSchemaFromJSONSchemas(name: string, options: JSONSchemaLoaderOptions): Promise<import("graphql").GraphQLSchema>;
export declare function loadGraphQLSchemaFromJSONSchemas(name: string, options: JSONSchemaLoaderOptions): Promise<import("graphql").GraphQLSchema>;