Schema Documentation

SimpleProductToProductConnectionWhereArgs

Description

Arguments for filtering the SimpleProductToProductConnection connection

Fields
Input FieldDescription
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.

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.

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":"abc123","categoryId":123,"categoryIdIn":[123],"categoryIdNotIn":[987],"categoryIn":["xyz789"],"categoryNotIn":["abc123"],"dateQuery":DateQueryInput,"exclude":[123],"featured":false,"include":[123],"maxPrice":987.65,"minPrice":987.65,"onSale":true,"orderby":[ProductsOrderbyInput],"parent":123,"parentIn":[123],"parentNotIn":[987],"search":"abc123","shippingClassId":123,"sku":"xyz789","slugIn":["xyz789"],"status":"abc123","stockStatus":["IN_STOCK"],"supportedTypesOnly":true,"tag":"abc123","tagId":987,"tagIdIn":[987],"tagIdNotIn":[123],"tagIn":["xyz789"],"tagNotIn":["abc123"],"taxonomyFilter":ProductTaxonomyInput,"type":"EXTERNAL","typeIn":["EXTERNAL"],"typeNotIn":["EXTERNAL"],"visibility":"CATALOG"}