Ne uplne otestovany prepis storu

This commit is contained in:
Michal Kváček
2023-11-19 00:44:01 +01:00
parent e65491e00b
commit f9d70a5d57
76 changed files with 1445 additions and 1463 deletions
+4 -3
View File
@@ -4,11 +4,12 @@ import {FRAGMENT_FLIGHT_FULL_INFO} from "src/graphql/fragments/flight";
export const CREATE_FLIGHT = gql`
mutation createFlight($input: CreateFlightInput!) {
createFlight(input: $input) {
id
...flightFullInfo
}
}
`
// ^^ nesmim se tu ptat na aircraft, jinak mi to upadne
${FRAGMENT_FLIGHT_FULL_INFO}
`;
export const EDIT_FLIGHT = gql`
mutation editFlight($id: Int!, $input: EditFlightInput!) {
editFlight(id: $id, input: $input) {
+9 -17
View File
@@ -7,7 +7,6 @@ export const CREATE_ORGANIZATION = gql`
...organizationFullInfo
}
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
@@ -17,33 +16,26 @@ mutation editOrganization($id: Int!, $input: EditOrganizationInput!) {
...organizationFullInfo
}
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
export const ADD_USER_TO_ORGANIZATION = gql`
mutation addToOrganization($organizationId: Int!) {
addToOrganization(organizationId: $organizationId) {
users {
id
name
email
avatarImageUrl
}
...organizationFullInfo
}
}`;
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
export const REMOVE_USER_FROM_ORGANIZATION = gql`
mutation removeFromOrganization($organizationId: Int!) {
removeFromOrganization(organizationId: $organizationId) {
users {
id
name
email
avatarImageUrl
}
...organizationFullInfo
}
}`;
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
// export const DELETE_ORGANIZATION = gql`
// mutation deleteOrganization($id: Int!) {