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