nicolaslopezj / graphql-compiler

Compile .graphql files in Meteor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL Compiler

Compiles .graphql files in Meteor.

meteor add orionsoft:graphql-compiler

In Query.graphql:

type Query {
  items: [Item]
}

In index.js:

import Query from './Query.graphql'

console.log(Query)

Log index.js:

type Query {
  items: [Item]
}

So now you can write your graphql schema in .graphql files and them import them as Strings.

About

Compile .graphql files in Meteor

License:MIT License


Languages

Language:JavaScript 100.0%