mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 22:45:04 -05:00
* upgraded storybook dependencies * upgraded web dependencies * updated timezone selector * upgrade chakra in metamaps * upgraded react-dnd in metamaps * upgraded framer-motion * fixed types in metamaps * upgraded eslint * upgraded lerna, husky and graphql * upgraded node version * removed metamaps package * fixed all eslint issues * ran yarn format to prettier format all files * updated lint-staged & husky scripts * add executable perms to pre-push scripts * updated yarn.lock * fixed eslint and moved chakra icons to ds * fixed emotion errors * removed extra useContext * update yarn.lock * upgraded more packages * removed unnecessary .huskyrc.json * lint fix
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
import gql from 'fake-tag';
|
|
|
|
export const UpdateUsernameMutation = gql`
|
|
mutation UpdatePlayerUsername($playerId: uuid!, $username: String!) {
|
|
update_player_by_pk(
|
|
pk_columns: { id: $playerId }
|
|
_set: { username: $username }
|
|
) {
|
|
id
|
|
username
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const UpdateProfileMutation = gql`
|
|
mutation UpdateProfile($playerId: uuid!, $input: player_set_input!) {
|
|
update_player_by_pk(pk_columns: { id: $playerId }, _set: $input) {
|
|
id
|
|
availability_hours
|
|
timezone
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const UpdateAboutYouMutation = gql`
|
|
mutation UpdateAboutYou($playerId: uuid!, $input: player_set_input!) {
|
|
update_player_by_pk(pk_columns: { id: $playerId }, _set: $input) {
|
|
color_mask
|
|
playerType {
|
|
description
|
|
id
|
|
imageUrl
|
|
title
|
|
}
|
|
id
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const UpdateSkillsMutation = gql`
|
|
mutation UpdatePlayerSkills($skills: [player_skill_insert_input!]!) {
|
|
delete_player_skill(where: {}) {
|
|
affected_rows
|
|
}
|
|
insert_player_skill(objects: $skills) {
|
|
affected_rows
|
|
}
|
|
}
|
|
`;
|