babel-plugin-graphql-literals
v0.0.0-alpha.1
Published
Transpose GraphQL schema language to programmatic types.
Downloads
3
Readme
Usage
import * as graphql from 'graphql';
const Character = graphql`
type Character {
id: ID!
name: String
}
`;
const QueryRoot = graphql`
type Query {
characters: [Character]!
}
`;
const schema = new graphql.GraphQLSchema({
query: QueryRoot
});