Skip to content

Latest commit

 

History

History

graphql-client

GraphQL Client

A graphql client for the graphql-server app.

The react hooks require a @yas/query-client to be provided by a parent component.

Uses urql under the hood

tsconfig.json

Add the following to the tsconfig.json of any package that wants to use graphql-client:

{
  "extends": [
    "@yas/tsconfig/react.json", //Use whichever base config you want.
    "@yas/graphql-client/tsconfig.graphql.json" // This enables the LSP plugin
  ]
}