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
is
(read-only)
string
Events
Name |
Type |
Description |
variables-changed |
PolymerChangeEvent<Variables<D, V>>
|
|
loading-changed |
PolymerChangeEvent<boolean>
|
|
errors-changed |
PolymerChangeEvent<readonly GraphQLError[]>
|
|
error-changed |
PolymerChangeEvent<Error>
|
|
data-changed |
PolymerChangeEvent<Data<D>>
|
|
Exports
import '@apollo-elements/polymer/polymer-apollo-subscription';
import { PolymerApolloSubscription } from '@apollo-elements/polymer/polymer-apollo-subscription';