@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) • 314 B
text/typescript
import type { SchemaComposer } from 'graphql-compose';
import type { JSONSchemaObject } from '@json-schema-tools/meta-schema';
export declare function getValidTypeName({ schemaComposer, isInput, subSchema, }: {
schemaComposer: SchemaComposer;
isInput: boolean;
subSchema: JSONSchemaObject;
}): string;