feat(auth): add user and role management
This commit is contained in:
29
packages/web/src/graphql/queries/get-users.ts
Normal file
29
packages/web/src/graphql/queries/get-users.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_USERS = gql`
|
||||
query GetUsers(
|
||||
$limit: Int!
|
||||
$offset: Int!
|
||||
) {
|
||||
getUsers(
|
||||
limit: $limit
|
||||
offset: $offset
|
||||
) {
|
||||
pageInfo {
|
||||
currentPage
|
||||
totalPages
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
role {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user