Sprava eventu a organizaci
This commit is contained in:
@@ -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}
|
||||
`;
|
||||
@@ -16,6 +16,11 @@ export const LOGGED_USER_DETAIL = gql`
|
||||
query loggedUserDetail {
|
||||
loggedUser {
|
||||
...userFullInfo
|
||||
|
||||
organizations {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user