Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination Total Count in DjangoFilterPaginateListField #205

Open
ArjunGajmer1 opened this issue Apr 22, 2024 · 0 comments
Open

Pagination Total Count in DjangoFilterPaginateListField #205

ArjunGajmer1 opened this issue Apr 22, 2024 · 0 comments

Comments

@ArjunGajmer1
Copy link

ArjunGajmer1 commented Apr 22, 2024

How can we have total count in DjangoFilterPaginateListField, similar to DjangoListObjectField.

{
  "data": {
    "myModels": {
      "results": [
        {
          id: 1
          }
        },
        {
          id: 2
        }
      ],
      "totalCount": 2
    }
  }
}

and

{
  "data": {
    "myModels":  [
        {
          id: 1
          }
        {
          id: 2
        }
      ],
      "myModelstotalCount": 2
    }
}
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

No branches or pull requests

1 participant