refactor: rewrite usePermissionCatalog with RQ

This commit is contained in:
Rıdvan Akca
2024-03-14 16:13:01 +03:00
parent 3aa86eebf2
commit 0d525e056a
6 changed files with 29 additions and 47 deletions

View File

@@ -1,20 +0,0 @@
import { gql } from '@apollo/client';
export const GET_PERMISSION_CATALOG = gql`
query GetPermissionCatalog {
getPermissionCatalog {
subjects {
key
label
}
conditions {
key
label
}
actions {
label
key
subjects
}
}
}
`;