-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
When upgrading from 3.0.0 to 4.0.0, my test for when the result is empty broke.
In 3.0.0 the meta.last field was not populated. This is what meta looks like:
{
count: 0,
pageCount: 0,
totalCount: 0,
next: null,
previous: null,
self: 'http://localhost:3000/testPagination?page=1&limit=25',
first: 'http://localhost:3000/testPagination?page=1&limit=25',
last: null
}
In 4.0.0 the meta.last field has a 0 indexed link. This is what meta looks like:
{
count: 0,
pageCount: 0,
totalCount: 0,
next: null,
previous: null,
self: 'http://localhost:3000/testPagination?page=1&limit=25',
first: 'http://localhost:3000/testPagination?page=1&limit=25',
last: 'http://localhost:3000/testPagination?page=0&limit=25'
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels