babel-plugin-graphql-literals

0.0.0-alpha.1 • Public • Published

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
});

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-graphql-literals

Weekly Downloads

1

Version

0.0.0-alpha.1

License

MIT

Last publish

Collaborators

  • zebulonj