graphql-2-json-schema
Version:
`graphql-2-json-schema` package
11 lines (10 loc) • 464 B
TypeScript
import { GraphQLSchema, IntrospectionQuery } from 'graphql';
import { JSONSchema6 } from 'json-schema';
declare type GetTodoSchemaIntrospectionResult = {
schema: GraphQLSchema;
introspection: IntrospectionQuery;
};
export declare const getTodoSchemaIntrospection: () => GetTodoSchemaIntrospectionResult;
export declare const todoSchemaAsJsonSchema: JSONSchema6;
export declare const todoSchemaAsJsonSchemaWithoutNullableArrayItems: JSONSchema6;
export {};