Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add schema and changelog

fowczarek15a7f42e810c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5a92d0e135..801d1cacf0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Move Django Debug Toolbar requirement to the "dev" one (also downgrade it 2.0 -> 1.11, see PR) - #4454 by @derenio
- Add voucher once per customer - #4442 by @fowczarek
- New menu design - #4476 by @benekex2
+- Mutation for changing logged user first and last name - #4489 by @fowczarek
- New translations:
- Greek
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 61e1acebf8..c4aa7d09a5 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3,6 +3,18 @@ schema {
mutation: Mutations
}
+input AccountInput {
+ firstName: String
+ lastName: String
+ defaultBillingAddress: AddressInput
+ defaultShippingAddress: AddressInput
+}
+
+type AccountUpdate {
+ errors: [Error!]
+ user: User
+}
+
type Address implements Node {
id: ID!
firstName: String!
@@ -1654,6 +1666,7 @@ type Mutations {
customerAddressCreate(input: AddressInput!, type: AddressTypeEnum): CustomerAddressCreate
customerSetDefaultAddress(id: ID!, type: AddressTypeEnum!): CustomerSetDefaultAddress
loggedUserUpdate(input: UserAddressInput!): LoggedUserUpdate
+ accountUpdate(input: AccountInput!): AccountUpdate
staffCreate(input: StaffCreateInput!): StaffCreate
staffDelete(id: ID!): StaffDelete
staffBulkDelete(ids: [ID]!): StaffBulkDelete