Files
TheGame/packages/web/graphql/mutations/updateProfile.ts
Alec LaLonde 44c706761c Feature/add timezone frontend (#231)
* Added tz column

* Updated hasura permissions on new table

* Added new dependencies for working with timezones

* Added SetupTimeZone component

* Bumped spacetime-informal to use their types

* Extracted timezone computation into helper, added useMemo hook

* Re-added spacetime types
2020-12-24 23:28:12 -07:00

12 lines
270 B
TypeScript

import gql from 'fake-tag';
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
tz
}
}
`;