Path-segment locales make each language crawlable with self canonical and hreflang, while identity.locale persists an explicit choice without client storage or cookie banners. Signed-off-by: Émile Ré <emile@probo.com>
29 lines
627 B
GraphQL
29 lines
627 B
GraphQL
extend type Mutation {
|
|
updateFullName(input: UpdateFullNameInput!): UpdateFullNamePayload
|
|
@authentication(required: PRESENT) @sessionOnly
|
|
updateLocale(input: UpdateLocaleInput!): UpdateLocalePayload
|
|
@authentication(required: PRESENT) @sessionOnly
|
|
signOut: SignOutPayload! @authentication(required: PRESENT) @sessionOnly
|
|
}
|
|
|
|
input UpdateFullNameInput {
|
|
fullName: String!
|
|
}
|
|
|
|
type UpdateFullNamePayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
input UpdateLocaleInput {
|
|
# Short URL locale tag (en, fr, de, …).
|
|
locale: String!
|
|
}
|
|
|
|
type UpdateLocalePayload {
|
|
identity: Identity!
|
|
}
|
|
|
|
type SignOutPayload {
|
|
success: Boolean!
|
|
}
|