You can use this widget to input text into the page.

Puzzle Types

 Puzzles

Puzzles

Scroll To Top // nest within any conditional, such as onload fetch('/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0YXZlLXByb2R1Y3QtaW1wb3J0Lm15YmlnY29tbWVyY2UuY29tIl0sImVhdCI6MTc4NDExNzM1OCwiaWF0IjoxNzgzOTQ0NTU4LCJpc3MiOiJCQyIsInNpZCI6MTAwMTgxMzEzOCwic3ViIjoiQkMiLCJzdWJfdHlwZSI6MCwidG9rZW5fdHlwZSI6MX0.EHF9wfmmczasgSQDPplMGG4NAEJknBwY1ewZR_9qaovn6qfbuxeE2oPemHrnNQZIfdVjLGuwTaXkjCcZnCG5RQ' }, body: JSON.stringify({ query: "{ site { category(entityId: $categoryId) { metafields(namespace: 'stave', keys: ['seo-h1']) { edges { node { value } } } } } }" }) //graphql query string }) .then(data => data.json()) .then(data => console.log(data)) .catch(error => console.error(error));