graphql-tag
Advanced tools
Comparing version 2.6.0 to 2.6.1
{ | ||
"name": "graphql-tag", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "A JavaScript template literal tag that parses GraphQL queries", | ||
@@ -33,4 +33,4 @@ "main": "./lib/graphql-tag.umd.js", | ||
"peerDependencies": { | ||
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0" | ||
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0" | ||
} | ||
} |
@@ -108,2 +108,22 @@ # graphql-tag | ||
#### Support for multiple operations | ||
With the webpack loader, you can also import operations by name: | ||
In a file called `query.gql`: | ||
```graphql | ||
query MyQuery1 { | ||
... | ||
} | ||
query MyQuery2 { | ||
... | ||
} | ||
``` | ||
And in your JavaScript: | ||
```javascript | ||
import { MyQuery1, MyQuery2 } from 'query.gql' | ||
``` | ||
### Warnings | ||
@@ -110,0 +130,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
76552
137