eslint-plugin-graphql icon indicating copy to clipboard operation
eslint-plugin-graphql copied to clipboard

:vertical_traffic_light: Check your GraphQL query strings against a schema.

Results 101 eslint-plugin-graphql issues
Sort by recently updated
recently updated
newest added
trafficstars

When we try to use a [template placeholder](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in a graphql-tag template we get graphql validation errors: ``` 6:56 error Syntax Error: Unexpected $ graphql/capitalized-type-name 6:56 error Syntax Error: Unexpected...

Consider this union type `union SearchResult = Human | Droid | Starship`. And this query: ``` { search(text: "an") { __typename ... on Human { id name height } ......

For apps which have additional rules around query construction the ability to leverage eslint-plugin-graphql to create additional validation rules would be great! :)

#ANTiCOVID ````` `````

Using Apollo Client with gql Consider the following query ```graphql mutation SET_FILTERS_MUTATION($fromDate: String!, $toDate: String!) { setFilters(fromDate: $fromDate, toDate: $toDate) @client } ``` The @client is not recognised by the...

One issue I've seen come up multiple times is Apollo's caching mechanism throwing when a given `__typename` has at some point been queried with `id` (which Apollo uses to normalize...

There is already a PR open for this, but for visibility/demand voting, adding it here too: - https://github.com/apollographql/eslint-plugin-graphql/pull/242

Greetings and thank you for the great efforts. Can I use apollo.config.js instead of graphql.config.js?

I run Apollo to access a WordPress API. So my schema is defined on the server someplace. I don't really need linting of the available parameters, I just want it...

Hi, I have this lint error : Here my Query : ``` #import './user-fragment.gql' query GetUser($id: Int!, $filter: String, $sorts: [String!]) { user(id: $id) { ...UserFragment } } ``` And...