graphene-django-extras icon indicating copy to clipboard operation
graphene-django-extras copied to clipboard

Pagination Total Count in DjangoFilterPaginateListField

Open ArjunGajmer1 opened this issue 10 months ago • 0 comments

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
    }
}

ArjunGajmer1 avatar Apr 22 '24 01:04 ArjunGajmer1