Skip to main content

ProductWhereInput Input Type

No description

input ProductWhereInput {
metadata: [MetadataFilter!]
ids: [ID!]
name: StringFilterInput
slug: StringFilterInput
productType: GlobalIDFilterInput
category: GlobalIDFilterInput
collection: GlobalIDFilterInput
isAvailable: Boolean
isPublished: Boolean
isVisibleInListing: Boolean
publishedFrom: DateTime
availableFrom: DateTime
hasCategory: Boolean
price: DecimalFilterInput
minimalPrice: DecimalFilterInput
attributes: [AttributeInput!]
stockAvailability: StockAvailability
stocks: ProductStockFilterInput
giftCard: Boolean
hasPreorderedVariants: Boolean @deprecated
updatedAt: DateTimeFilterInput
AND: [ProductWhereInput!]
OR: [ProductWhereInput!]
}

Fields​

metadata ● [MetadataFilter!]​

ids ● [ID!]​

name ● StringFilterInput​

Filter by product name.

slug ● StringFilterInput​

Filter by product slug.

productType ● GlobalIDFilterInput​

Filter by product type.

category ● GlobalIDFilterInput​

Filter by product category.

collection ● GlobalIDFilterInput​

Filter by collection.

isAvailable ● Boolean​

Filter by availability for purchase.

isPublished ● Boolean​

Filter by public visibility.

isVisibleInListing ● Boolean​

Filter by visibility on the channel.

publishedFrom ● DateTime​

Filter by the publication date.

availableFrom ● DateTime​

Filter by the date of availability for purchase.

hasCategory ● Boolean​

Filter by product with category assigned.

price ● DecimalFilterInput​

Filter by product variant price.

minimalPrice ● DecimalFilterInput​

Filter by the lowest variant price after discounts.

attributes ● [AttributeInput!]​

Filter by attributes associated with the product.

stockAvailability ● StockAvailability​

Filter by variants having specific stock status.

stocks ● ProductStockFilterInput​

Filter by stock of the product variant.

giftCard ● Boolean​

Filter on whether product is a gift card or not.

updatedAt ● DateTimeFilterInput​

Filter by when was the most recent update.

AND ● [ProductWhereInput!]​

List of conditions that must be met.

OR ● [ProductWhereInput!]​

A list of conditions of which at least one must be met.

Show deprecatedHide deprecated

hasPreorderedVariants ● Boolean​

DEPRECATED

Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set trackInventory to false to sell without a stock limit.

Filter by product with preordered variants.

Member Of​

CataloguePredicateInput input ● products query ● ProductWhereInput input