Add workspace members (#536)
* Add workspace members * Remove workspace provider * Lint
This commit is contained in:
2
front/src/modules/workspace/queries/index.ts
Normal file
2
front/src/modules/workspace/queries/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export * from './select';
|
||||
export * from './update';
|
||||
19
front/src/modules/workspace/queries/select.ts
Normal file
19
front/src/modules/workspace/queries/select.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_CURRENT_WORKSPACE = gql`
|
||||
query GetCurrentWorkspace {
|
||||
currentWorkspace {
|
||||
id
|
||||
workspaceMember {
|
||||
id
|
||||
user {
|
||||
id
|
||||
email
|
||||
avatarUrl
|
||||
firstName
|
||||
lastName
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
12
front/src/modules/workspace/queries/update.ts
Normal file
12
front/src/modules/workspace/queries/update.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const UPDATE_WORKSPACE = gql`
|
||||
mutation UpdateWorkspace($data: WorkspaceUpdateInput!) {
|
||||
updateWorkspace(data: $data) {
|
||||
id
|
||||
domainName
|
||||
displayName
|
||||
logo
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user