# Apollo

> Apollo Client

- Skill: `neuralblitz/apollo` (Agent Skill)
- Install (CLI): `npx skillmds@latest add neuralblitz/apollo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/neuralblitz/apollo/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: NeuralBlitz (https://skillmd.com/u/neuralblitz)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/neuralblitz/apollo

---

# Apollo Client

Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. It provides caching, optimistic updates, and error handling.

## Key Concepts

- InMemoryCache
- Apollo hooks (useQuery, useMutation)
- Fragments and directives
- Optimistic responses
- Cache redirect and type policies

## Common Use Cases

- React/Vue/Angular apps
- Mobile apps (Apollo iOS/Android)
- Complex state management
- Offline-first applications
- Real-time updates

## Best Practices

- Configure cache policies properly
- Use fragments for reusable queries
- Implement error boundaries
- Leverage skip/writeQuery
- Use Apollo Explorer for debugging

## Resources

- Apollo Docs: apollographql.com/docs
- Related Skills: graphql, react, typescript

