add role update (#11217)
## Context This PR introduces the new Create and Edit role components, behind the PERMISSIONS_ENABLED_V2 feature flag.
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import { ROLE_FRAGMENT } from '@/settings/roles/graphql/fragments/roleFragment';
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const CREATE_ROLE = gql`
|
||||
${ROLE_FRAGMENT}
|
||||
mutation CreateOneRole($createRoleInput: CreateRoleInput!) {
|
||||
createOneRole(createRoleInput: $createRoleInput) {
|
||||
...RoleFragment
|
||||
}
|
||||
}
|
||||
`;
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import { ROLE_FRAGMENT } from '@/settings/roles/graphql/fragments/roleFragment';
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const UPDATE_ROLE = gql`
|
||||
${ROLE_FRAGMENT}
|
||||
mutation UpdateOneRole($updateRoleInput: UpdateRoleInput!) {
|
||||
updateOneRole(updateRoleInput: $updateRoleInput) {
|
||||
...RoleFragment
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user