refactor: rewrite useUsers with RQ

This commit is contained in:
kasia.oczkowska
2024-03-15 15:01:53 +00:00
parent 76f77e8a4c
commit ab671ccbf7
7 changed files with 29 additions and 236 deletions

View File

@@ -1,23 +0,0 @@
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
}
}
}
}
}
`;