schon/storefront/graphql/mutations/languages.ts

15 lines
No EOL
232 B
TypeScript

export const SWITCH_LANGUAGE = gql`
mutation setlanguage(
$uuid: UUID!,
$language: String,
) {
updateUser(
uuid: $uuid,
language: $language
) {
user {
...User
}
}
}
`