graphql-2-json-schema
Version:
`graphql-2-json-schema` package
13 lines (12 loc) • 620 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 declare const todoSchemaAsJsonSchemaWithIdTypeNumber: JSONSchema6;
export declare const todoSchemaAsJsonSchemaWithIdTypeStringOrNumber: JSONSchema6;
export {};