graphql-tag
graphql-tag copied to clipboard
A JavaScript template literal tag that parses GraphQL queries
When using the webpack loader you can get errors like `Type "CardInterface" was defined more than once` for a set of schema files like this: **Setup:** schema.graphql: ``` #import "./SmallCard.graphql"...
**Issue Labels** - [ ] has-reproduction - [x] feature - [ ] docs - [ ] blocking - [ ] good first issue sometimes we need dynamic insert some enum...
**Use Case:** We have logic that decides the document operation at runtime. Most queries are set to **query** but at times we change them to **subscription** via the AST object....
Say I have a fragment **A** which has two fragments **B** and **C** *fragmentA.gql*: ```graphql #import "fragmentB" #import "fragmentC" fragment A { ...B items { ...C } } ``` which...
This is the implementation of the changes discussed in #173.
Hi! I spent yesterday updating the [beta branch](https://github.com/detrohutt/babel-plugin-inline-import-graphql-ast/blob/beta/plugin/multi-op.js) of my package babel-plugin-inline-import-graphql-ast to support multiple operations like this package. In doing so, I reused a lot of the code from...
I want to use graphql-tag inside a [React Native web player](https://github.com/dabbott/react-native-web-player), but when I include it using https://unpkg.com/[email protected], I get the error message > parse is not a function I...
Usually, using a fragment is a better option!
Regarding `#import "my-fragment.gql"` (#33) vs auto-resolving/loading fragments from the project where necessary. Bringing this in from a discussion from [Twitter](https://twitter.com/armstrjare/status/821513486274531328)/[Gist](https://gist.github.com/armstrjare/61ba4750e7e849fb676145ab4573f366). Suggestion: Instead of manually `#import`ing files to load fragments for...
Hello, i have been trying to get [dagger.io](https://dagger.io/) running on deno and i have stumbled on an issue importing graphql-tag in deno. See: https://github.com/denoland/deno/issues/25311 graphql-tag bundles into an umd.js file...