Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

apollo-angular-test

apollostack9MIT0.1.0TypeScript support: included

Angular 2.0 client for Apollo

readme

angular2-apollo

npm version Get on Slack Build status Coverage Status bitHound Overall Score

Use your GraphQL server data in your Angular 2.0 app, with the Apollo Client.

Install

npm install angular2-apollo --save

Development

Running tests locally:

# nvm use node
npm install
npm test

This project uses TypeScript for static typing and TSLint for linting. You can get both of these built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.

changelog

Change log

vNEXT

v0.9.0-rc.1

  • Support es6 modules and tree-shaking (PR #151)
  • Make our Ahead-of-Time compilation compatible with Angular 2.3.0 (PR #189)

v0.8.0

  • Made mutate() and query() methods to return Observable instead of Promise (PR #140)
  • Use types of options (for watchQuery, query, mutate) ( PR #145, PR #146, PR #148 )

v0.7.0

  • Added support for Ahead of Time compilation (PR #124)

v0.6.0

  • Added support for ApolloClient v0.5.X ([PR #])
  • Added subscribeToMore function (PR)
  • BREAKING CHANGE No no longer support ApolloClient v0.4.X
  • BREAKING CHANGE Removed Apollo decorator (use Angular2Apollo service)
  • BREAKING CHANGE Removed ApolloQueryPipe (use SelectPipe instead)

v0.5.0

  • Added subscribe method to Angular2Apollo service (PR #113)
  • Added updateQuery to ApolloQueryObservable (PR #113)
  • Deprecated ApolloQueryPipe (use SelectPipe instead)
  • Deprecated Apollo decorator (use Angular2Apollo service)
  • BREAKING CHANGE No longer support for ApolloClient v0.3.X

v0.4.6

  • Moved to Angular 2 final and updated RxJS to the latest version (PR #96)

v0.4.5

v0.4.4

  • Fixed format of arguments in backward compatible methods (PR #74)
  • Made queries reusable (use refetch on new variables) (PR #74)
  • Used apollo-client-rxjs (PR #72)
  • Fixed an issue that prevents from subscribing to ApolloQueryObservable (PR #71)
  • Added SelectPipe and deprecated ApolloQueryPipe (PR #78)

v0.4.3

  • Added ApolloModule (with RC5 of Angular2 comes NgModules) (PR #63)
  • Added ability to use query variables as observables. With this, the query can be automatically re-run when those obserables emit new values. (PR #64)

v0.4.2

  • Added fetchMore support (PR #58)
  • Exposed ApolloQueryObservable in the index module (PR #54)
  • Added support for getting loading state from ApolloQueryResult Issue #36 (PR #43)
  • Fixed ApolloQueryObservable incompatibility with Rx.Observable (PR #59)

v0.4.1

  • Added ApolloQueryObservable to support Rx.Observable in Angular2Apollo.watchQuery method (PR #52)
  • Added query method to Angular2Apollo service (PR #51)

v0.4.0

  • Passing all the options of mutation in Apollo decorator PR #39
  • Added support for apollo-client breaking change that moves methods to query's observable (PR #40)
  • Replaced lodash with subpackages, removed graphql-tag from dependencies, moved apollo-client and @angular/core to peerDependecies (PR #44)
  • Added ApolloQuery interface (PR #45)

v0.3.0

  • Added SSR support
  • Left lodash as the only one dependency and @angular/core with apollo-client as peerDependecies (PR #29)
  • Fixed missing data in reused component (PR #30)
  • Fixed overwriting query data with the same value on every poll interval (PR #34)

v0.2.0

  • Added polling, refetching and access to unsubscribe method (PR #19)
  • Added forceFetch, returnPartialData and pollInterval support (PR #19)
  • Added errors and loading to the query's result object (PR #19)
  • Added both results from decorator and service support for ApolloQueryPipe (PR #27)
  • Fixed issue with not setting a query with not defined variables (PR #19)

v0.1.0

  • Added Angular2 RC1 and ApolloClient 0.3.X support (PR #16, PR #17)

v0.0.2

v0.0.1

Initial release. We didn't track changes before this version.