Apollo Angular

A fully-featured GraphQL client for Angular

Docs
GitHubGitHub
  • Introduction
  • Get Started
    • Queries
    • Mutations
    • Subscriptions
    • Query, Mutation, Subscription Services
    • Network Layer
    • Pagination
    • Using Fragments
    • Error Handling
    • Configuration
    • Reading and Writing
    • Garbage Collection
    • Customizing Field Behavior
    • Advanced Topics
    • Managing Local State
    • Managing State with Field Policies
    • Reactive Variables
    • TypeScript
    • Testing
    • Mocking New Schema Capabilities
    • Developer Tools
    • Improving Performance
    • Optimistic UI
    • Server Side Rendering
    • Automatic Persisted Queries
    • Angular CLI
    • Webpack Loader
    • Authentication
    • Multiple Clients
    • Integrating with NativeScript
  • Migration Guide
Question? Give us feedback →Edit this page on GitHub
Docs
Caching
Reading and Writing

Reading and Writing Data to the Cache

Apollo Client provides three methods for reading and writing data to the cache:

  • readQuery and readFragment
  • writeQuery and writeFragment
  • cache.modify (a method of InMemoryCache)

Please read the “Reading and writing data to the cache” chapter on Apollo Client documentation.

ConfigurationGarbage Collection

Products

  • Hive
  • Mesh
  • Yoga
  • Code Generator
  • Nextra
  • GraphQL to REST

Resources

  • Press Kit

Company

  • About
  • Blog
  • Newsletter
DiscordGitHub
Cloud Security Alliance Star Level One Badge