Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Users to Grab the 26th+ Entry in a Query #37

Open
AurelicButter opened this issue Oct 1, 2021 · 1 comment
Open

Allow Users to Grab the 26th+ Entry in a Query #37

AurelicButter opened this issue Oct 1, 2021 · 1 comment
Labels
Enhancement New feature or request

Comments

@AurelicButter
Copy link
Owner

AurelicButter commented Oct 1, 2021

Users are currently restricted by the first page of the related entries to many of the methods right now. The first page has 25 entries, as per AniList's limit, but it is possible to query for more entries. Users should have an optional parameter in methods to get the next 25+ entries if they wish.

For example:

One Piece has 53 related entries right now but with media.anime() it is only possible to get 25 of those entries.

Because of the way the query is setup,

relations { nodes { id title { english native romaji userPreferred } type } }

will only ever return 25 entries.

While a change like this,

relations (page: x) { nodes { id title { english native romaji userPreferred } type } }

would allow users to query for other entries that would not be listed on other pages.

Each entry that grabs related entries (ie: characters & media) is a connection so those changes should work fine for the GraphQL queries.

Edit: Updated with more explanation and example.

@AurelicButter AurelicButter added the Enhancement New feature or request label Oct 1, 2021
@Exhabition
Copy link
Contributor

As mentioned in the #anilist-node channel on Discord, this issue probably has to be put on hold until AniList supports pages for relations. At the time of writing you are not allowed to supply a page parameter and all page info entries are null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants