Apollo Client is the best way to use GraphQL to build client applications. It is designed from day one to make it easy to build UI that fetches data with GraphQL. To get the most out of Apollo Client, you should use it with one of its view layer integrations like React.
- Incrementally adoptable, so that you can drop it into an existing app today.
- Universally compatible, so that Apollo works with any build setup, any GraphQL server, and any GraphQL schema.
- Simple to get started with, so you can start loading data right away and learn about advanced features later.
- Inspectable and understandable, so that you can understand exactly what is happening in your app.
- Built for interactive apps, so your users can make changes and see them reflected immediately.
- Small and flexible, so you don’t get stuff you don’t need.
- Community driven, because Apollo is driven by the community and serves a variety of use cases.
These docs will help you to go from getting started with Apollo to becoming an expert!
The docs for Apollo Client are mainly written using the React integration, but most of the examples work no matter where you use Apollo. The docs are broken into five distinct sections to make it easy to find your way around:
- Essentials, which outline everything you need to know in order to get started quickly.
- Features, which go over all of the amazing things you can do with Apollo Client.
- Advanced, which showcase some of the advanced capabilities of Apollo Client that your app may need.
- Recipes, to isolate and explain how to do common patterns.
- API, to act as an entry point to find API details for Apollo Client and React Apollo.
We believe that using GraphQL should be easy and fun. One of the ways Apollo is designed for this is that if you can write your query in GraphiQL, it’ll work with Apollo Client! Because it doesn’t assume anything beyond the official GraphQL specification, Apollo works with every GraphQL server implementation, for every language. It doesn’t impose any requirements on your schema either! If you can send a query to a standard GraphQL server, Apollo can handle it. You can find a list of GraphQL server implementations on graphql.org.
This documentation site is written with examples using React, but Apollo has an implementation for every client platform: