Skip to content

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

Open
@AurelicButter

Description

@AurelicButter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions