Skip to content

Add @client directive support in VS Code #847

@tomsseisums

Description

@tomsseisums

I am trying to set up IDE to ease GraphQL development for our junior team members. And not gonna lie, to help myself too.

I have a query that operates on client state:

import gql from 'graphql-tag';

export default gql`
mutation LoadProfile($profile: ProfileInput!) {
  loadProfile(profile: $profile) @client {
    accessToken
    avatar
    name
  }
}
`

Though, removing the @client does not invalidate the query.

image

Is this expected behaviour or I have misconfigured something or it's a bug?


Otherwise, everything seem to be working - autocompletion for both client queries and remote queries, go-to definition, validation, for instance:

image

Just that dropping @client from client queries doesn't throw anything.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions