Sprava eventu a organizaci

This commit is contained in:
Michal Kváček
2023-09-20 13:26:13 +02:00
parent 6fbaef4a1e
commit 8c3c5ee48d
42 changed files with 624 additions and 56 deletions
+22
View File
@@ -0,0 +1,22 @@
import gql from "graphql-tag";
import {FRAGMENT_ORGANIZATION_FULL_INFO, FRAGMENT_ORGANIZATION_LIST_INFO} from "src/graphql/fragments/organization";
export const ORGANIZATIONS_LIST = gql`
query organizationsList {
organizations {
...organizationListInfo
}
}
${FRAGMENT_ORGANIZATION_LIST_INFO}
`;
export const ORGANIZATION_DETAIL = gql`
query organization($id: Int!) {
organization(id: $id) {
...organizationFullInfo
}
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
+5
View File
@@ -16,6 +16,11 @@ export const LOGGED_USER_DETAIL = gql`
query loggedUserDetail {
loggedUser {
...userFullInfo
organizations {
id
name
}
}
}