Skip to content

Monotype or dual types #960

Answered by Naramsim
lostcat420 asked this question in Q&A
Nov 20, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, the best is to use GraphQL:

query samplePokeAPIquery {
  pokemon_v2_pokemon(where: {pokemon_v2_pokemontypes_aggregate: {count: {predicate: {_gte: 2}}}}) {
    id
    pokemon_v2_pokemontypes {
      pokemon_v2_type {
        name
      }
    }
    name
  }
}

https://pokeapi.co/docs/graphql

The query extracts all the pokemon with 2 or more types.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lostcat420
Comment options

Answer selected by lostcat420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants