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
  • Conductor
  • Envelop
  • Stitching
  • Inspector
  • Code Generator
  • Tools
  • Modules
  • ESLint
  • Config
  • feTS
  • Scalars
  • SOFA
  • Angular
  • WhatsApp
  • KitQL
  • WS
  • SSE
  • heltin
  • Nextra

RESOURCES

  • Press Kit

COMPANY

  • About
  • Blog
  • Newsletter
  • Open Source
  • Services
  • GitHub

COMMUNITY

  • Twitter
  • LinkedIn
  • Discord
  • Medium
  • YouTube
Cloud Security Alliance Star Level One Badge