How to use the @apollo-elements/lib/is-valid-gql function in @apollo-elements/lib

To help you get started, weโ€™ve selected a few @apollo-elements/lib 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 / mixins / apollo-element-mixin.js View on Github external
set document(doc) {
      if (!doc) return;
      if (isValidGql(doc)) {
        this.__document = doc;
      } else {
        throw new TypeError('document must be a gql-parsed DocumentNode');
      }
    }