Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 326 B view raw
1<script> 2 import { setContextClient, Client, cacheExchange, fetchExchange } from "@urql/svelte"; 3 import PokemonList from "./PokemonList.svelte"; 4 5 setContextClient(new Client({ 6 url: "https://trygql.formidable.dev/graphql/basic-pokedex", 7 exchanges: [cacheExchange, fetchExchange], 8 })); 9</script> 10 11<PokemonList />