29 lines
652 B
JavaScript
29 lines
652 B
JavaScript
import gql from "graphql-tag";
|
|
import {FRAGMENT_COPILOT_FULL_PRIVATE_INFO} from "src/graphql/fragments/copilot";
|
|
|
|
export const CREATE_COPILOT = gql`
|
|
mutation createCopilot($input: CreateCopilotInput!) {
|
|
createCopilot(input: $input) {
|
|
...copilotFullPrivateInfo
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_COPILOT_FULL_PRIVATE_INFO}
|
|
`;
|
|
|
|
export const EDIT_COPILOT = gql`
|
|
mutation editCopilot($id: Int!, $input: EditCopilotInput!) {
|
|
editCopilot(id: $id, input: $input) {
|
|
...copilotFullPrivateInfo
|
|
}
|
|
}
|
|
${FRAGMENT_COPILOT_FULL_PRIVATE_INFO}
|
|
`;
|
|
export const DELETE_COPILOT = gql`
|
|
mutation deleteCopilot($id: Int!) {
|
|
deleteCopilot(id: $id) {
|
|
id
|
|
}
|
|
}
|
|
`;
|