INIT commit
This commit is contained in:
@@ -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
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// `;
|
||||
Reference in New Issue
Block a user