graphql-playground.html 1022 B

12345678910111213141516171819202122232425262728293031323334
  1. <!--<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css" />-->
  2. <link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png" />
  3. <script src="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js"></script>
  4. <div id="root">
  5. <img src='//cdn.jsdelivr.net/npm/graphql-playground-react/build/logo.png' alt=''>
  6. <div class="loading"> Loading
  7. <span class="title">GraphQL Playground</span>
  8. </div>
  9. </div>
  10. <script>window.addEventListener('load', function (event) {
  11. GraphQLPlayground.init(document.getElementById('root'), {
  12. endpoint: 'https://demo.vendure.io/shop-api',
  13. tabs: [
  14. {
  15. endpoint: 'https://demo.vendure.io/shop-api',
  16. name: `products`,
  17. query: `
  18. {
  19. products {
  20. items {
  21. id
  22. name
  23. variants {
  24. sku
  25. name
  26. price
  27. }
  28. }
  29. }
  30. }`,
  31. }
  32. ]
  33. });
  34. })</script>