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