Add product search (#64)
This commit is contained in:
+20
-1
@@ -21,9 +21,10 @@ type Query {
|
||||
order(id: ID!): Order
|
||||
products(
|
||||
pagination: PaginationInput!
|
||||
filter: ProductsFilterInput!
|
||||
filter: ProductsFilterInput
|
||||
): ProductsResult
|
||||
product(id: Int!): Product
|
||||
productsSearch(q: String!): ProductsSearchResult
|
||||
categories: [Category]
|
||||
category(id: Int!): Category
|
||||
keywords: [Keyword]
|
||||
@@ -82,6 +83,18 @@ type ProductsResult {
|
||||
items: [Product]
|
||||
}
|
||||
|
||||
type ProductsSearchResult {
|
||||
q: String!
|
||||
"""
|
||||
products contains matches for `name` and `artNo`
|
||||
"""
|
||||
products: [Product]
|
||||
batches: [Batch]
|
||||
keywords: [Keyword]
|
||||
categories: [Category]
|
||||
designers: [Designer]
|
||||
}
|
||||
|
||||
input InteriorsFilterInput {
|
||||
productId: Int!
|
||||
}
|
||||
@@ -245,6 +258,11 @@ type Category {
|
||||
products: [Product]
|
||||
}
|
||||
|
||||
type Batch {
|
||||
name: String!
|
||||
products: [Product]
|
||||
}
|
||||
|
||||
type Product {
|
||||
id: ID!
|
||||
stockid: Int
|
||||
@@ -378,6 +396,7 @@ type Designer {
|
||||
name: String
|
||||
path: String
|
||||
orderRows(pagination: PaginationInput!, filter: DateFilterInput): [OrderRow]
|
||||
products: [Product]
|
||||
}
|
||||
|
||||
enum KeywordType {
|
||||
|
||||
Reference in New Issue
Block a user