1import { gql, createClient } from '@urql/core';
2import { Pokemon, PokemonFields, WeakFields } from './Pokemon';
3
4const PokemonQuery = gql`
5 query Po($id: ID!) {
6 pokemon(id: $id) {
7 id
8 fleeRate
9 __typename
10 }
11 }
12` as typeof import('./index.generated').PoDocument;
13
14client
15 .query(PokemonQuery, { id: '' })
16 .toPromise()
17 .then(result => {
18 result.data?.pokemons;
19 });