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
require('graphql-tag-register')(); const MyQuery = require('./my-query.gql');
There's a complex example built in !!
# will load ./example.gql node ./example.js
npm i graphql-tag-register
2 years ago
Test with RunKit