Adventure Poke using django and graphene.. :)
$ bash adventure-up.sh --buildfrontend ReactJs
backend /graphQL
try it :)
# https://graphql.org/learn/queries/
{
pokesWithTypes: allPokemons {
edges {
node {
...PokeWithTypesEntity
}
}
}
typesWithPokes: allTypes {
edges {
node {
...TypesWithPokeEntity
}
}
}
}
fragment TypeEntity on TypeType {
name
}
fragment PokeEntity on PokemonType {
name
pokeId
imgDefault
imgShiny
}
fragment TypesWithPokeEntity on TypeType {
name
poke_list: pokemonSet {
edges {
node {
...PokeEntity
}
}
}
}
fragment PokeWithTypesEntity on PokemonType {
name
pokeId
imgDefault
imgShiny
types {
edges {
node {
...TypeEntity
}
}
}
}