Files
apollo/docs/api/dollar-apollo.md
T
joe-re 563c932fe5 fix: update typings (#447)
* add clients and defaultClient property to ApolloProvider

* remove client property from DollerApollo

* enable to specity client name to query
2019-01-09 09:36:00 +01:00

1.1 KiB

Dollar Apollo

This is the Apollo manager added to any component that uses Apollo. It can be accessed inside a component with this.$apollo.

Properties

  • vm: related component
  • queries: array of the component's Smart Queries.
  • subscriptions: array of the component's Smart Subscriptions.
  • provider: injected Apollo Provider.
  • loading: whether at least one query is loading.
  • skipAllQueries: (setter) boolean to pause or unpause all Smart Queries.
  • skipAllSubscriptions: (setter) boolean to pause or unpause all Smart Subscriptions.
  • skipAll: (setter) boolean to pause or unpause all Smart Queries and Smart Subscriptions.

Methods

  • query: execute a query (see Queries).
  • mutate: execute a mutation (see Mutations).
  • subscribe: standard Apollo subscribe method (see Subscriptions).
  • addSmartQuery: manually add a Smart Query (not recommended).
  • addSmartSubscription: add a Smart Subscription (see Subscriptions).