
* feat(user-list): add pagination * feat: add actual total count in getUsers --------- Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
31 lines
442 B
TypeScript
31 lines
442 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const GET_USERS = gql`
|
|
query GetUsers(
|
|
$limit: Int!
|
|
$offset: Int!
|
|
) {
|
|
getUsers(
|
|
limit: $limit
|
|
offset: $offset
|
|
) {
|
|
pageInfo {
|
|
currentPage
|
|
totalPages
|
|
}
|
|
totalCount
|
|
edges {
|
|
node {
|
|
id
|
|
fullName
|
|
email
|
|
role {
|
|
id
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|