0.1.1 • Published 7 years ago

graphql-tag-register v0.1.1

Weekly downloads
11
License
-
Repository
github
Last release
7 years ago

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