<script lang="ts">
  /*** IMPORT ------------------------------------------- ***/

  import { createHttpFetcher } from "../../source/library/index.ts";
  import GraphiQL from "../../source/library/GraphiQL.svelte";

  /*** UTILITY ------------------------------------------ ***/

  const fetcher = createHttpFetcher({
    url: "https://countries.trevorblades.com/"
  });

  const initialQuery = `query Countries {
  countries {
    code
    name
    emoji
  }
}
`;
</script>

<GraphiQL {fetcher} {initialQuery}/>
