Schema Documentation
CartItemToProductConnectionWhereArgs
Description
Arguments for filtering the CartItemToProductConnection connection
Fields
Input Field | Description |
---|---|
attribute - String | Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug. |
attributeTerm - String | Limit result set to products with a specific attribute term ID (required an assigned attribute). |
category - String | Limit result set to products assigned a specific category name. |
categoryId - Int | Limit result set to products assigned a specific category name. |
categoryIdIn - [Int] | Limit result set to products assigned to a specific group of category IDs. |
categoryIdNotIn - [Int] | Limit result set to products not assigned to a specific group of category IDs. |
categoryIn - [String] | Limit result set to products assigned to a group of specific categories by name. |
categoryNotIn - [String] | Limit result set to products not assigned to a group of specific categories by name. |
dateQuery - DateQueryInput | Filter the connection based on dates. |
exclude - [Int] | Ensure result set excludes specific IDs. |
featured - Boolean | Limit result set to featured products. |
include - [Int] | Limit result set to specific ids. |
includeVariations - Boolean | Include variations in the result set. |
maxPrice - Float | Limit result set to products based on a maximum price. |
minPrice - Float | Limit result set to products based on a minimum price. |
onSale - Boolean | Limit result set to products on sale. |
orderby - [ProductsOrderbyInput] | What paramater to use to order the objects by. |
parent - Int | Use ID to return only children. Use 0 to return only top-level items. |
parentIn - [Int] | Specify objects whose parent is in an array. |
parentNotIn - [Int] | Specify objects whose parent is not in an array. |
rating - [Int] | Limit result set to products with a specific average rating. Must be between 1 and 5 |
search - String | Limit result set to products based on a keyword search. |
shippingClassId - Int | Limit result set to products assigned a specific shipping class ID. |
sku - String | Limit result set to products with specific SKU(s). Use commas to separate. |
slugIn - [String] | Limit result set to products with specific slugs. |
status - String | Limit result set to products assigned a specific status. |
stockStatus - [StockStatusEnum] | Limit result set to products in stock or out of stock. |
supportedTypesOnly - Boolean | Limit result types to types supported by WooGraphQL. |
tag - String | Limit result set to products assigned a specific tag name. |
tagId - Int | Limit result set to products assigned a specific tag ID. |
tagIdIn - [Int] | Limit result set to products assigned to a specific group of tag IDs. |
tagIdNotIn - [Int] | Limit result set to products not assigned to a specific group of tag IDs. |
tagIn - [String] | Limit result set to products assigned to a specific group of tags by name. |
tagNotIn - [String] | Limit result set to products not assigned to a specific group of tags by name. |
taxonomyFilter - ProductTaxonomyInput | Limit result set with complex set of taxonomy filters. |
type - ProductTypesEnum | Limit result set to products assigned a specific type. |
typeIn - [ProductTypesEnum] | Limit result set to products assigned to a group of specific types. |
typeNotIn - [ProductTypesEnum] | Limit result set to products not assigned to a group of specific types. |
visibility - CatalogVisibilityEnum | Limit result set to products with a specific visibility level. |
Example
{"attribute":"abc123","attributeTerm":"xyz789","category":"xyz789","categoryId":987,"categoryIdIn":[123],"categoryIdNotIn":[987],"categoryIn":["xyz789"],"categoryNotIn":["abc123"],"dateQuery":DateQueryInput,"exclude":[123],"featured":true,"include":[987],"includeVariations":true,"maxPrice":987.65,"minPrice":987.65,"onSale":false,"orderby":[ProductsOrderbyInput],"parent":987,"parentIn":[123],"parentNotIn":[987],"rating":[987],"search":"abc123","shippingClassId":987,"sku":"xyz789","slugIn":["xyz789"],"status":"xyz789","stockStatus":["IN_STOCK"],"supportedTypesOnly":true,"tag":"abc123","tagId":987,"tagIdIn":[123],"tagIdNotIn":[123],"tagIn":["xyz789"],"tagNotIn":["xyz789"],"taxonomyFilter":ProductTaxonomyInput,"type":"BUNDLE","typeIn":["BUNDLE"],"typeNotIn":["BUNDLE"],"visibility":"CATALOG"}