request: paginate the response of getAllPokemon
to allow for further nesting of data
#900
Open
1 task done
Labels
Is there an existing issue or pull request for this?
Feature description
Currently the response of
getAllPokemon
is, by default, not paginated. This sets a hard limit on how much data can be returned defined by the string limit that the v8 engine can handle (~1GB). At the time of writing (2023-15-12) with the data from Scarlet & Violet Indigo Disk the full JSON is ~524 MB. This size will ever only increase as time goes on and more Pokémon are released. Furthermore, this limit also blocks the expansion of further nesting data, such as changingotherFormes
to be properPokemon
references as opposed to just species strings.Important
This change would be a breaking change because the response of
getAllPokemon
would drastically change.Desired solution
To resolve this issue the response from
getAllPokemon
should be paginated by default. The following rules will be applied:Alternatives considered
Additional context
#899 where
otherFormes
nesting was added as an attempt to provide more data to the end-userThe text was updated successfully, but these errors were encountered: