graphql-tag-register
v0.1.1
Published
Compile .gql files as graphql-tags at runtime (similar to babel-core/register)
Maintainers
Readme
graphql-tag-register
Loads .gql files as graphql-tag at runtime in node
Useful in conjunction with react-apollo if you can't use the webpack graphql loader
Usage
require('graphql-tag-register')();
const MyQuery = require('./my-query.gql');Example
There's a complex example built in !!
# will load ./example.gql
node ./example.js