Advertisement
r_martins

Apollo Client Local

Nov 1st, 2022
1,047
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.93 KB | Software | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7.     <title>Apollo</title>
  8.   </head>
  9.   <body>
  10.     <div
  11.      id="sandbox"
  12.      style="position: absolute; top: 0; right: 0; bottom: 0; left: 0"
  13.    ></div>
  14.     <script src="https://embeddable-sandbox.cdn.apollographql.com/_latest/embeddable-sandbox.umd.production.min.js"></script>
  15.     <script>
  16.       new window.EmbeddedSandbox({
  17.         target: "#sandbox",
  18.         // Pass through your server href if you are embedding on an endpoint.
  19.         // Otherwise, you can pass whatever endpoint you want Sandbox to start up with here.
  20.         initialEndpoint: window.location.href,
  21.       });
  22.       // advanced options: https://www.apollographql.com/docs/studio/explorer/sandbox#embedding-sandbox
  23.     </script>
  24.   </body>
  25. </html>
  26.  
Tags: graphql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement