How to use the @apollo-elements/mixins/apollo-query-mixin.js.ApolloQueryMixin function in @apollo-elements/mixins

To help you get started, weโ€™ve selected a few @apollo-elements/mixins examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apollo-elements / apollo-elements / packages / polymer / apollo-query.js View on Github external
*     
 *
 *     
 *       [[data.user.picture]]
 *       [[data.user.name]]
 *     
 *   `;
 * }
 * ```
 *
 * @polymer
 * @customElement
 * @extends ApolloQuery
 * @appliesMixin NotifyingElementMixin
 */
const ApolloQuery = ApolloQueryMixin(class extends NotifyingElementMixin(HTMLElement) {
  /**
   * Latest data.
   * @type {Object}
   */
  get data() {
    return this.__data;
  }

  set data(value) {
    this.__data = value;
    this.notify('data', value);
  }

  /**
   * Latest error.
   * @type {Object}