Apollo Angular is the official Angular integration for Apollo Client, enabling reactive GraphQL queries, mutations, and subscriptions in Angular applications. Version 14.0.0 targets Angular 19–21 and Apollo Client 4+, with RxJS 7+. It ships full TypeScript definitions, follows Angular's async pipe pattern, and provides schematic generators for rapid setup. Unlike generic GraphQL clients, it leverages Angular's dependency injection and zone.js for seamless change detection. Release cadence is aligned with Angular major versions, typically semver-major every 6–12 months.
npm install apollo-angularNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Apollo Client with Angular DI and shows a basic query component using watchQuery and async pipe.
Update @apollo/client to ^4.0.1.
Upgrade to Angular 19, 20, or 21.
Use 'import { gql } from '@apollo/client'.Use .valueChanges observable instead of manually subscribing to QueryRef.
Import { HttpLinkModule } from 'apollo-angular/http' or add HttpLink to providers using factory.Add HttpLink to providers in your module: providers: [HttpLink] or import ApolloModule with http link configuration.
Change import to: import { gql } from '@apollo/client';Update apollo-angular to at least v2.0.0, or use .watchQuery().valueChanges is only on newer versions.
Import ApolloModule in your root module or standalone component as needed.
No dependency data recorded yet.