Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL Federation and API platform engineering.Join us for GraphQL Summit 2024 in NYC
Docs
Start for Free

Introduction to Apollo Client


Want to learn about Apollo Client in-person?

Don't miss the GraphQL for web: Going hands-on with Apollo Client workshop at this year's GraphQL Summit.

Apollo Client is a comprehensive state management library for JavaScript. It enables you to manage both local and remote data with . Use it to fetch, cache, and modify application data, all while automatically updating your UI.

helps you structure code in an economical, predictable, and declarative way that's consistent with modern development practices. The core @apollo/client library provides built-in integration with React, and the larger Apollo community maintains integrations for other popular view layers.

Get started!

Core features

Some of Apollo Client's core capabilities include:

  • Declarative data fetching: Write a and receive data without manually tracking loading states.
  • Normalized request and response caching: Boost performance by responding almost immediately to queries with cached data.
  • Excellent developer experience: Enjoy helpful tooling for TypeScript, Chrome / Firefox devtools, and VS Code.
  • Designed for modern React: Take advantage of the latest React features, such as hooks and Suspense.
  • Incrementally adoptable: Drop Apollo Client into any JavaScript app and incorporate it feature by feature.
  • Universally compatible: Use any build setup and any GraphQL API.
  • Community driven: Share knowledge with thousands of developers in the GraphQL community.

GraphOS supported features

Apollo Client works seamlessly with these supported features:

NOTE

Apollo Client also supports @defer and GraphQL implementations outside of .

After you get started, check out the full Apollo Client documentation in the navigation on the left.

We recommend the following articles in particular:

  • Queries and Mutations. These are the read and write of GraphQL.
  • Caching overview. Apollo Client's normalized cache enables you to skip network requests entirely when data is already available locally.
  • Managing local state. Apollo Client provides APIs for managing both remote and local data, enabling you to consolidate all of your application's state.
  • Basic HTTP networking. Learn how to send custom headers and other authentication metadata in your queries.
  • Testing React components. Test your GraphQL operations without requiring a connection to a server.

Community integrations

This documentation set focuses on React, but Apollo Client supports many other libraries and languages:

Next
Why Apollo Client?
Rate articleRateEdit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc., d/b/a Apollo GraphQL.

Privacy Policy

Company