schon/storefront/app/graphql/mutations/languages.ts
2026-02-27 21:59:51 +03:00

18 lines
320 B
TypeScript

import { USER_FRAGMENT } from '@graphql/fragments/user.fragment';
export const SWITCH_LANGUAGE = gql`
mutation setLanguage(
$uuid: UUID!,
$language: String,
) {
updateUser(
uuid: $uuid,
language: $language
) {
user {
...User
}
}
}
${USER_FRAGMENT}
`;