INIT commit

This commit is contained in:
Michal Kváček
2023-05-31 20:44:10 +02:00
commit a3e8917db5
73 changed files with 5405 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
import gql from "graphql-tag";
import {FRAGMENT_AIRCRAFT_FULL_INFO} from "src/graphql/fragments/aircraft";
export const CREATE_AIRCRAFT = gql`
mutation createAircraft($input: CreateAircraftInput!) {
createAircraft(input: $input) {
...aircraftFullInfo
}
}
${FRAGMENT_AIRCRAFT_FULL_INFO}
`;
export const EDIT_AIRCRAFT = gql`
mutation editAircraft($id: Int!, $input: EditAircraftInput!) {
editAircraft(id: $id, input: $input) {
...aircraftFullInfo
}
}
${FRAGMENT_AIRCRAFT_FULL_INFO}
`;
export const DELETE_AIRCRAFT = gql`
mutation deleteAircraft($id: Int!) {
deleteAircraft(id: $id) {
id
}
}
`;
// export const CREATE_CAMPAIGN = gql`
// mutation createCampaign($input: CreateCampaignMutationInput!) {
// createCampaign(input: $input) {
// campaign {
// id
// }
// }
// }
// `;