Description
apollo-client is an agent skill that guides an AI coding assistant through building React applications with Apollo Client 4. It covers setting up the client in a React project, writing GraphQL queries and mutations with hooks, configuring cache policies, managing local state with reactive variables, and debugging performance issues. The skill explains when to use it, for example adding a query with loading and error states to a component, setting cache policies for paginated lists or types without an id field, writing optimistic updates so a mutation feels instant, moving from useQuery to useSuspenseQuery in a React 18 or later app, and tracking down why a query returns stale data from the normalised cache. Apollo Client's caching layer and hook-based API remove much of the boilerplate needed to fetch, cache and sync GraphQL data by hand.…
Highlights
- Apollo Client 4 setup for React
- GraphQL queries and mutations with hooks
- Cache policy and reactive variable guidance
- Optimistic updates and useSuspenseQuery
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate apollographql/apollo-client.
People also visit
apollographql/apollo-kotlin
A GraphQL client for Android, JVM, and Kotlin Multiplatform projects
apollographql/apollo-mcp-server
Connect AI agents to GraphQL APIs through the Model Context Protocol
apollographql/graphql-operations
Write GraphQL queries, mutations, and subscriptions following best practices
apollographql/apollo-client FAQ
What does this skill do?
It guides an AI assistant through building React apps with Apollo Client 4, including queries, mutations, cache policies and debugging.
When should I use it?
For tasks such as adding a query with loading and error states, setting cache policies, writing optimistic updates or moving to useSuspenseQuery.
How do I install it?
Run npx skills add https://github.com/apollographql/skills --skill apollo-client.
Who publishes it?
Apollo GraphQL publishes it in its skills repository on GitHub, and it is listed on officialskills.sh.
What are the best apollographql/apollo-client alternatives?
Popular alternatives to apollographql/apollo-client include apollographql/apollo-kotlin, apollographql/apollo-server and apollographql/apollo-mcp-server. See all apollographql/apollo-client alternatives












