Skip to content

[BUG] Users\Client->findAll does not paginate #396

@utdrmac

Description

@utdrmac

Describe the bug
Using findAll() to retrieve all users only returns the first 100 users. Notion API docs indicate you must paginate using the 'next_cursor' after checking 'has_more' in the result. There is no option to provide this information to the function either.

To Reproduce
Steps to reproduce the behavior:

  1. Use Users\Client->findAll()
  2. Observe the returning array is only 100 elements

Expected behavior
Either A) findAll() should paginate automatically, and return the entire list of users, or B) provide some way to pass the cursor so the next call fetches the next page.

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