Skip to content

setting limit to 0 for paginator does not get all results w/o pagination #1282

@ayoayco

Description

@ayoayco

Hello 👋

According to masto docs setting the limit parameter to 0 when viewing accounts in a list should return all accounts without pagination.

I am trying to do the following in a Nuxt application:

const accountsInList = ref((await useMastoClient().v1.lists
    .$select(listId.value).accounts.list({ limit: 0 }))
    .map(account => account.id))

...and I only get 40 items (which is the default limit), but I know there should be more because after setting the limit to 100 I get 55 accounts.

(related PR in elk: elk-zone/elk#3272 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions