Skip to content

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

Add changelog and graphql schema

fowczarekfdbc4dd3c858
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fe84fe6e05..9101908f54 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -65,6 +65,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Distinguish OrderLine product name and variant name - #4702 by @fowczarek
- Fix for Digital products - update order status after automatic fulfillment - #4709 by @korycins
- Add redirectUrl to staff and user create mutations - #4717 by @fowczarek
+- Filtering: use search in a consistent way. Add sort by product type name and publication status to products query. - #4715 by @fowczarek
## 2.8.0
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index c85b0d30a2..2329832e6b 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -466,6 +466,10 @@ type CategoryDelete {
category: Category
}
+input CategoryFilterInput {
+ search: String
+}
+
input CategoryInput {
description: String
descriptionJson: JSONString
@@ -1627,6 +1631,10 @@ type MenuDelete {
menu: Menu
}
+input MenuFilterInput {
+ search: String
+}
+
input MenuInput {
name: String
}
@@ -1682,6 +1690,10 @@ type MenuItemDelete {
menuItem: MenuItem
}
+input MenuItemFilterInput {
+ search: String
+}
+
input MenuItemInput {
name: String
url: String
@@ -2100,6 +2112,7 @@ enum OrderDirection {
input OrderDraftFilterInput {
customer: String
created: DateRangeInput
+ search: String
}
type OrderEvent implements Node {
@@ -2176,6 +2189,7 @@ input OrderFilterInput {
status: [OrderStatusFilter]
customer: String
created: DateRangeInput
+ search: String
}
type OrderLine implements Node {
@@ -2301,6 +2315,10 @@ type PageDelete {
page: Page
}
+input PageFilterInput {
+ search: String
+}
+
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
@@ -2470,6 +2488,11 @@ type PluginCountableEdge {
cursor: String!
}
+input PluginFilterInput {
+ active: Boolean
+ search: String
+}
+
type PluginUpdate {
errors: [Error!]
plugin: Plugin
@@ -2669,6 +2692,8 @@ enum ProductOrderField {
PRICE
MINIMAL_PRICE
DATE
+ TYPE
+ PUBLISHED
}
type ProductPricingInfo {
@@ -2930,7 +2955,7 @@ type Query {
digitalContents(query: String, level: Int, before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection
attributes(query: String, inCategory: ID, inCollection: ID, filter: AttributeFilterInput, sortBy: AttributeSortingInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
attribute(id: ID!): Attribute
- categories(query: String, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
+ categories(query: String, filter: CategoryFilterInput, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
category(id: ID!): Category
collection(id: ID!): Collection
collections(filter: CollectionFilterInput, query: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
@@ -2945,7 +2970,7 @@ type Query {
payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection
paymentClientToken(gateway: GatewaysEnum): String
page(id: ID, slug: String): Page
- pages(query: String, before: String, after: String, first: Int, last: Int): PageCountableConnection
+ pages(query: String, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection
homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection
order(id: ID!): Order
orders(filter: OrderFilterInput, query: String, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection
@@ -2953,13 +2978,13 @@ type Query {
ordersTotal(period: ReportingPeriod): TaxedMoney
orderByToken(token: String!): Order
menu(id: ID, name: String): Menu
- menus(query: String, before: String, after: String, first: Int, last: Int): MenuCountableConnection
+ menus(query: String, filter: MenuFilterInput, before: String, after: String, first: Int, last: Int): MenuCountableConnection
menuItem(id: ID!): MenuItem
- menuItems(query: String, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
+ menuItems(query: String, filter: MenuItemFilterInput, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
giftCard(id: ID!): GiftCard
giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
plugin(id: ID!): Plugin
- plugins(before: String, after: String, first: Int, last: Int): PluginCountableConnection
+ plugins(filter: PluginFilterInput, before: String, after: String, first: Int, last: Int): PluginCountableConnection
sale(id: ID!): Sale
sales(filter: SaleFilterInput, query: String, before: String, after: String, first: Int, last: Int): SaleCountableConnection
voucher(id: ID!): Voucher