Polymer: polymer-apollo-subscription

Examples

Subscribing for Updates
<polymer-apollo-subscription
    data="{{data}}"
    variables="[[variables]]"
    subscription="[[UserJoinedSubscription]]"
    on-data-changed="toast"
></polymer-apollo-subscription>

<paper-toast duration="5000" text="A wild [[data.userJoined.name]] approaches!">
  <iron-image>[[data.userJoined.picture]]</iron-image>
</paper-toast>

Properties

static

Events

data-changed

PolymerChangeEvent<Data<D>>

variables-changed

PolymerChangeEvent<Variables<D, V>>

error-changed

PolymerChangeEvent<Error>

errors-changed

PolymerChangeEvent<readonly GraphQLError[]>

loading-changed

PolymerChangeEvent<boolean>

Exports

js PolymerApolloSubscription from polymer-apollo-subscription.js

custom-element-definition from polymer-apollo-subscription.js