apollo-elements/apollo-elements

View on GitHub
docs/api/libraries/mixins/graphql-script-child-mixin.md

Summary

Maintainability
Test Coverage
---
layout: layout-api
package: '@apollo-elements/mixins'
module: graphql-script-child-mixin.js
---
<!-- ----------------------------------------------------------------------------------------
     Welcome! This file includes automatically generated API documentation.
     To edit the docs that appear within, find the original source file under `packages/*`,
     corresponding to the package name and module in this YAML front-matter block.
     Thank you for your interest in Apollo Elements 😁
------------------------------------------------------------------------------------------ -->

# Web Component Libraries >> Class Mixins >> GraphQLScriptChildMixin || 70

`GraphQLScriptChildMixin` allows Apollo elements to read their GraphQL document (i.e. query, mutation, or subscription) and variables from HTML `<script type="application/graphql">` or `<script type="application/json">` elements