Reference
Queries#
productStock#
Requires: scope products:read · feature products.
productStock(productId: ID!, warehouseId: ID): ProductStockBalance
| Argument | Type | |
|---|---|---|
productId | ID! | |
warehouseId | ID |
lowStockProducts#
Requires: scope products:read · feature inventory.
lowStockProducts(profileId: ID!): [Product!]!
| Argument | Type | |
|---|---|---|
profileId | ID! |
product#
Requires: scope products:read · feature products.
product(id: ID!): Product!
| Argument | Type | |
|---|---|---|
id | ID! | The id of the record to find. |
products#
Requires: scope products:read · feature products.
products(paging: CursorPaging!, filter: ProductFilter!, sorting: [ProductSort!]!): ProductConnection!
| Argument | Type | |
|---|---|---|
paging | CursorPaging! | Limit or page results. |
filter | ProductFilter! | Specify to filter the records returned. |
sorting | [ProductSort!]! | Specify to sort results. |
productCategory#
Requires: scope products:read · feature products.
productCategory(id: ID!): ProductCategory!
| Argument | Type | |
|---|---|---|
id | ID! | The id of the record to find. |
productCategories#
Requires: scope products:read · feature products.
productCategories(paging: CursorPaging!, filter: ProductCategoryFilter!, sorting: [ProductCategorySort!]!): ProductCategoryConnection!
| Argument | Type | |
|---|---|---|
paging | CursorPaging! | Limit or page results. |
filter | ProductCategoryFilter! | Specify to filter the records returned. |
sorting | [ProductCategorySort!]! | Specify to sort results. |
Mutations#
createOneProduct#
Requires: scope products:write · feature products.
createOneProduct(profileId: ID!, input: CreateProductInput!): Product!
| Argument | Type | |
|---|---|---|
profileId | ID! | |
input | CreateProductInput! |
createManyProducts#
Requires: scope products:write · feature products.
createManyProducts(profileId: ID!, input: [CreateProductInput!]!): [Product!]!
| Argument | Type | |
|---|---|---|
profileId | ID! | |
input | [CreateProductInput!]! |
createOneProductCategory#
Requires: scope products:write · feature products.
createOneProductCategory(profileId: ID!, input: CreateProductCategoryInput!): ProductCategory!
| Argument | Type | |
|---|---|---|
profileId | ID! | |
input | CreateProductCategoryInput! |
createManyProductCategories#
Requires: scope products:write · feature products.
createManyProductCategories(profileId: ID!, input: [CreateProductCategoryInput!]!): [ProductCategory!]!
| Argument | Type | |
|---|---|---|
profileId | ID! | |
input | [CreateProductCategoryInput!]! |
updateOneProduct#
Requires: scope products:write · feature products.
updateOneProduct(input: UpdateOneProductInput!): Product!
| Argument | Type | |
|---|---|---|
input | UpdateOneProductInput! |
updateManyProducts#
Requires: scope products:write · feature products.
updateManyProducts(input: UpdateManyProductsInput!): UpdateManyResponse!
| Argument | Type | |
|---|---|---|
input | UpdateManyProductsInput! |
deleteOneProduct#
Requires: scope products:write · feature products.
deleteOneProduct(input: DeleteOneProductInput!): ProductDeleteResponse!
| Argument | Type | |
|---|---|---|
input | DeleteOneProductInput! |
deleteManyProducts#
Requires: scope products:write · feature products.
deleteManyProducts(input: DeleteManyProductsInput!): DeleteManyResponse!
| Argument | Type | |
|---|---|---|
input | DeleteManyProductsInput! |
updateOneProductCategory#
Requires: scope products:write · feature products.
updateOneProductCategory(input: UpdateOneProductCategoryInput!): ProductCategory!
| Argument | Type | |
|---|---|---|
input | UpdateOneProductCategoryInput! |
updateManyProductCategories#
Requires: scope products:write · feature products.
updateManyProductCategories(input: UpdateManyProductCategoriesInput!): UpdateManyResponse!
| Argument | Type | |
|---|---|---|
input | UpdateManyProductCategoriesInput! |
deleteOneProductCategory#
Requires: scope products:write · feature products.
deleteOneProductCategory(input: DeleteOneProductCategoryInput!): ProductCategoryDeleteResponse!
| Argument | Type | |
|---|---|---|
input | DeleteOneProductCategoryInput! |
deleteManyProductCategories#
Requires: scope products:write · feature products.
deleteManyProductCategories(input: DeleteManyProductCategoriesInput!): DeleteManyResponse!
| Argument | Type | |
|---|---|---|
input | DeleteManyProductCategoriesInput! |