Ne uplne otestovany prepis storu
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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!) {
|
||||
|
||||
Reference in New Issue
Block a user