The example response here is incorrect. It shows:
"data": {
"docs": [
{
"id": "63dbcb0571dad1e9aa85630c",
"type": "outfit",
"gender": "male",
"iconUrl": "https://example.org/icon.png",
"modelUrl": "https://example.org/model.glb",
"status": "published",
"organizationId": "61d8d13e5c7658ae34513411",
"name": "my outfit",
"applicationIds": [
"63d8e1782096e0afb2dbbe9f"
],
"createdAt": "2023-02-02T14:39:01.026Z",
"updatedAt": "2023-02-02T14:39:08.656Z",
"publishedAt": "2023-02-02T16:39:19.216+02:00"
}],
"totalDocs": 18,
"limit": 1,
"totalPages": 18,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": true,
"prevPage": 0,
"nextPage": 2
}
}
but it should really be:
{
"data": [
{
"id": "63dbcb0571dad1e9aa85630c",
"type": "outfit",
"gender": "male",
"iconUrl": "https://example.org/icon.png",
"modelUrl": "https://example.org/model.glb",
"status": "published",
"organizationId": "61d8d13e5c7658ae34513411",
"name": "my outfit",
"applicationIds": [
"63d8e1782096e0afb2dbbe9f"
],
"createdAt": "2023-02-02T14:39:01.026Z",
"updatedAt": "2023-02-02T14:39:08.656Z",
"publishedAt": "2023-02-02T16:39:19.216+02:00"
}
],
"pagination": {
"totalDocs": 18,
"limit": 1,
"totalPages": 18,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": true,
"prevPage": 0,
"nextPage": 2
}
}