Skip to content

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

Update schema and changelog

Adam Janikdbe9aa8e44ff
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8a4e8dd9ac..d4850bad8f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Prefetch collections when getting sales of a bunch of products - #3961 by @NyanKiyoshi
- Move dialog windows to querystring rather than router paths - #3953 by @dominik-zeglen
+- Add mutation for bulk cancel orders - #3967 by @akjanik
- Cleanup and maintenance of the GraphQL API code - #3942 by @NyanKiyoshi
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index ba88e440b5..de8698fc57 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1173,6 +1173,7 @@ type Mutations {
orderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate
orderUpdateShipping(order: ID!, input: OrderUpdateShippingInput): OrderUpdateShipping
orderVoid(id: ID!): OrderVoid
+ ordersCancel(ids: [ID]!, restock: Boolean!): OrdersCancel
assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation
menuCreate(input: MenuCreateInput!): MenuCreate
menuDelete(id: ID!): MenuDelete
@@ -1464,6 +1465,11 @@ type OrderVoid {
order: Order
}
+type OrdersCancel {
+ errors: [Error!]
+ count: Int!
+}
+
type Page implements Node {
publicationDate: Date
isPublished: Boolean!