graphql-helper
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -171,3 +171,3 @@ 'use strict'; | ||
toString: function toString() { | ||
return partials.map(function (p) { | ||
return '__typename ' + partials.map(function (p) { | ||
return p.toString(); | ||
@@ -174,0 +174,0 @@ }).join(' '); |
{ | ||
"name": "graphql-helper", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A simple helper library for making GraphQL queries. For browser usage, ensure that you have a Promise polyfill.", | ||
@@ -5,0 +5,0 @@ "main": "lib.js", |
# graphql-helper | ||
A GraphQL helper library intended for use on both the browser and server, using ES6 tagged template strings. | ||
This library is meant for statically determined queries, and encourages the use of variables over polyfills. | ||
This library is meant for statically determined queries, and encourages the use of variables over string generation. | ||
**n.b.** This library comes with `isomorphic-fetch`, but does not come with a Promise polyfill. | ||
- **n.b.** This library comes with `isomorphic-fetch`, but does not come with a Promise polyfill. | ||
- **TODO:** Support option for providing your own "fetch" method | ||
- **TODO:** Support for static analysis and pre-compilation of queries | ||
**TODO:** Support option for providing your own "fetch" method | ||
**TODO:** Support for static analysis and pre-compilation of queries | ||
```bash | ||
@@ -12,0 +11,0 @@ npm install --save graphql-helper |
@@ -157,3 +157,3 @@ /* @flow */ | ||
{ __GRAPHQL_QUERY_PARTIAL__: true | ||
, toString: () => partials.map(p => p.toString()).join(' ') | ||
, toString: () => '__typename ' + partials.map(p => p.toString()).join(' ') | ||
, fragments: mergeFragments((partials : any)) | ||
@@ -160,0 +160,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17402
267