0.0.2 • Published 8 years ago
require-graphql-schema v0.0.2
require-graphql-schema
Require and parse GraphQL Schema definitions into a GraphQLSchema
or into a Document AST.
Installation
npm install --save require-graphql-schema
Usage
// src/index.js
import { requireGraphQLSchema, requireGraphQLAST } from 'require-graphql-schema';
const schema = requireGraphQLSchema('./path-to-schema-definition.graphql');
const astSchema = requireGraphQLAST('./path-to-schema-definition.graphql');
// ./path-to-schema-definition.graphql
type Query {
testString: String
}
0.0.2
8 years ago