I have the following graphQL query:
query findUser( $filters: [UsersPermissionsUserFiltersInput]) {
usersPermissionsUsers(filters: { or: $filters }, sort: "business:ASC" ) {
data {
id
attributes {
email
business
}
}
meta {
pagination {
total
page
pageSize
pageCount
}
}
}
}
with the following filters:
{
"filters": [{ "email": { "contains": "boriskamp" } }]
}
And I get the following response:
{
"data": {
"usersPermissionsUsers": {
"data": [
{
"id": "64",
"attributes": {
"email": "boriskamp1990@gmail.com",
"business": "Boris Kamp BV"
}
},
{
"id": "605",
"attributes": {
"email": "test@boriskamp.nl",
"business": "Test BV"
}
}
],
"meta": {
"pagination": {
"total": 561,
"page": 1,
"pageSize": 10,
"pageCount": 57
}
}
}
}
}
The problem here is meta.pagination.total
which is off, there are two results, not 561
which is the total count of all the users.
Am I doing something wrong or is this a bug?