Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed May 13, 2024
1 parent 6fc2774 commit db8418a
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions packages/example-tada/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@ import { useQuery } from 'urql';
import { graphql } from './graphql';
import { Fields, Pokemon, PokemonFields } from './Pokemon';

const query = graphql(`
query Po($id: ID!) {
pokemon(id: $id) {
id
fleeRate
...Pok
...pokemonFields
attacks {
special {
name
damage
const PokemonQuery = graphql(`
query Po($id: ID!) {
pokemon(id: $id) {
id
fleeRate
...Pok
...pokemonFields
attacks {
special {
name
damage
}
}
weight {
minimum
maximum
}
name
__typename
}
weight {
minimum
maximum
pokemons {
name
maxCP
maxHP
types
fleeRate
}
name
__typename
}
pokemons {
name
maxCP
maxHP
types
fleeRate
}
}
`, [PokemonFields, Fields.Pokemon])

// const persisted = graphql.persisted<typeof PokemonQuery>("sha256:7a9bbe8533362e631f92af8d7f314b1589c8272f8e092da564d9ad6cd600a4eb")
const persisted = graphql.persisted<typeof PokemonQuery>("sha256:7a9bbe8533362e631f92af8d7f314b1589c8272f8e092da564d9ad6cd600a4eb")

const Pokemons = () => {
const [result] = useQuery({
Expand Down

0 comments on commit db8418a

Please sign in to comment.