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.