Skip to content

Conversation

@kettanaito
Copy link
Member

@kettanaito kettanaito commented Oct 4, 2025

Important

The cursor record is now included in the pagination results (previously excluded). Since our goal here is to align with the existing practices in ORM libraries, I treat the previous behavior as unexpected and this change as a fix to that unexpected behavior. Use skip: 1 in a combination with cursor to get the previous behavior.

@kettanaito kettanaito changed the title test: add negative take pagination tests fix: add negative take pagination tests Oct 4, 2025
@kettanaito kettanaito marked this pull request as ready for review October 4, 2025 15:54
@kettanaito kettanaito changed the title fix: add negative take pagination tests feat: support backward pagination Oct 4, 2025
@kettanaito kettanaito merged commit b72636c into main Oct 4, 2025
1 check passed
@kettanaito kettanaito deleted the feat/pagination-negative-take branch October 4, 2025 15:55
@kettanaito
Copy link
Member Author

Released: v1.1.0 🎉

This has been released in v1.1.0.

Get these changes by running the following command:

npm i @msw/data@latest

Predictable release automation by Release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include cursor in pagination Support negative values for take in pagination

2 participants