Files
TheGame/packages/web/graphql/mutations/updateQuest.ts
δυς f5295c3242 Reading and Writing Profile Info From Ceramic (#943)
This is being merged for further testing so as to not block the progress of `develop` & not require more rebases.
2022-01-25 16:51:53 -05:00

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
}
}
}
`;