GraphQL

How to create a quick search component using Apollo lazy query

When React renders a component that calls the useQuery hook, the Apollo Client runs the query automatically. Sometimes you need to query for data on some event. To do so you can use the useLazyQuery hook.

Introduction to the Apollo local state and reactive variables

Marcin Kwiatkowski
Read more

Apollo client 3 enables the management of a local state through incorporating field policies and reactive variables. Take a look how to manage local state with Apollo client Read more

Introduction to the Apollo local state and reactive variables

The full-stack guide to the GraphQL query [ how to get started ]

Marcin Kwiatkowski
Read more

Nowadays GraphQL is becoming more and more popular. I would like to show you how to get started with it and how to query for data to GraphQL APIs Read more

The full-stack guide to the GraphQL query [ how to get started ]

2 ways of handling GraphQL errors in Apollo Client (React)

Marcin Kwiatkowski
Read more

If you use Graphql Apollo Client with React there are two ways of handling errors: query/mutation level and application level. Read what those approaches offer. Read more

2 ways of handling GraphQL errors in Apollo Client (React)

How to mock GraphQL queries and mutations

Marcin Kwiatkowski
Read more

GraphQL lets a frontend developer quickly mock sample data, and switch to real data when the backend is done. Read more

How to mock GraphQL queries and mutations