get-graphql-from-jsonschema
Version:
get-graphql-from-jsonschema gets a GraphQL schema from a JSON schema.
12 lines (11 loc) • 349 B
TypeScript
import { Direction } from './Types/Direction';
import { TranslatableJsonSchema } from './Types/TranslatableJsonSchema';
declare const parseSchema: ({ path, schema, direction }: {
path: string[];
schema: TranslatableJsonSchema;
direction: Direction;
}) => {
typeName: string;
typeDefinitions: string[];
};
export { parseSchema };