mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
This is being merged for further testing so as to not block the progress of `develop` & not require more rebases.
24 lines
483 B
TypeScript
24 lines
483 B
TypeScript
import gql from 'fake-tag';
|
|
|
|
export const UpdateQuestMutation = gql`
|
|
mutation UpdateQuest(
|
|
$id: uuid!
|
|
$input: quest_set_input!
|
|
$skills: [quest_skill_insert_input!]!
|
|
) {
|
|
update_quest_by_pk(pk_columns: { id: $id }, _set: $input) {
|
|
id
|
|
}
|
|
delete_quest_skill(where: { questId: { _eq: $id } }) {
|
|
affected_rows
|
|
}
|
|
insert_quest_skill(objects: $skills) {
|
|
affected_rows
|
|
returning {
|
|
questId
|
|
skillId
|
|
}
|
|
}
|
|
}
|
|
`;
|