apollo-client

Guide React developers in integrating Apollo Client 4.x for GraphQL data fetching.

102|12|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/apollographql/skills --skill apollo-client-apollographql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apollo-client
Source: https://github.com/apollographql/skills/tree/main/skills/apollo-client
Command: npx skills add https://github.com/apollographql/skills --skill apollo-client-apollographql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and best practices for integrating and utilizing Apollo Client 4.x within React applications, simplifying GraphQL data management for developers.

Core Features & Use Cases

  • Integration Guides: Tailored setup instructions for various React environments (Client-Side Apps, Next.js, React Router, TanStack Start).
  • Core Hooks: Demonstrates usage of useQuery, useMutation, and Suspense-enabled hooks like useSuspenseQuery.
  • State Management: Explains how to manage local state with reactive variables and @client fields.
  • Error Handling: Details strategies for managing GraphQL and network errors.
  • Use Case: A developer needs to implement a feature to fetch user data, display it, and allow users to update their profile. This Skill provides the necessary Apollo Client patterns for queries, mutations, and cache updates.

Quick Start

Use the apollo-client skill to set up Apollo Client in a new React project.

Frequently Asked Questions about apollo-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Apollo Client for GraphQL data fetching in a React app?

To integrate Apollo Client for GraphQL data fetching, use tailored setup guides for React environments like Next.js, then implement core hooks like `useQuery` to retrieve and display your application data.

What is the best way to manage local state with Apollo Client in React?

The best way to manage local state with Apollo Client is by using reactive variables and `@client` fields to handle local data directly within your GraphQL operations.

Does Apollo Client work with Next.js and React Router for server-side rendering?

Yes, Apollo Client works with Next.js and React Router, providing integration guides and supporting modern patterns like Suspense and SSR for server-side rendering.

How do I handle GraphQL and network errors when using Apollo Client hooks?

To handle GraphQL and network errors, Apollo Client provides detailed error handling strategies that allow you to catch and manage exceptions during data fetching operations.

Can I use Suspense with Apollo Client queries in frontend development?

Yes, you can use Suspense with Apollo Client queries by utilizing Suspense-enabled hooks like `useSuspenseQuery` for modern frontend development patterns.