graphql-tag icon indicating copy to clipboard operation
graphql-tag copied to clipboard

A JavaScript template literal tag that parses GraphQL queries

Results 102 graphql-tag issues
Sort by recently updated
recently updated
newest added

Any hopes or suggestions for use with Rollup?

question

The link in this error is broken: https://github.com/apollographql/graphql-tag/blob/1fd2c9d0378163d76b8091dd2dbd3afc6142a34a/src/index.js#L48-L50 It'd be nice if the fixed link describe best practices (https://github.com/apollographql/apollo-client/issues/1506) **and the alternative**: inline fragments. (I'm assuming inline fragments is defining...

I'm attempting to build dynamic queries using fragments and noticed that `gql()` takes additional arguments and found a way to use that to pass in fragments dynamically. For example: ```...

Error: Cannot find module 'graphql/language/parser' Require stack:

When using the loader, arguments of directives are missing: ```graphql # fragment.graphql fragment foo on Baa { foo @myCustomDirectove(foo "baa") } ``` ```js //app.js import * as fragments from "./fragment.graphql"...

I found https://github.com/apollographql/graphql-tag/pull/167 but the TS definitions of `enableExperimentalFragmentVariables` and `disableExperimentalFragmentVariables` was not found.

When colocating fragments, circular dependencies often become an issue. While GraphQL doesn't support circular fragment dependencies, it is still possible to have circular dependencies in the component files that declare...

feature

It currently takes two statements to include and spread a fragment. ### Current syntax ```js const personFragment = gql` fragment Person_person on Person { firstName lastName email } `; const...

ES6 modules expect the default export to be named `default`, rather than using the `module.exports` object. By providing an export named `default` here, we make the module more directly compatible...

Hello , i have a serious problem with mutation ,here is the function in the service : ```javascript public createClient = (newClient: ClientInputType) => { //console.log('client::',newClient); return this.apollo.mutate({ mutation: gql`mutation($client:...