npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

graphql-tag-register

0.1.1 • Public • Published

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

install

npm i graphql-tag-register

Downloadsweekly downloads

1

version

0.1.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability