Skip to main content
Version: Canary 🚧

productVariants

List of product variants.

Requires one of the following permissions to include the unpublished items: MANAGE_ORDERSMANAGE_DISCOUNTSMANAGE_PRODUCTS
productVariants(
ids: [ID!]
channel: String
filter: ProductVariantFilterInput
where: ProductVariantWhereInput
sortBy: ProductVariantSortingInput
before: String
after: String
first: Int
last: Int
): ProductVariantCountableConnection

Arguments

productVariants.ids ● [ID!] list scalar

Filter product variants by given IDs.

productVariants.channel ● String scalar

Slug of a channel for which the data should be returned.

productVariants.filter ● ProductVariantFilterInput input

Filtering options for product variant.

productVariants.where ● ProductVariantWhereInput input

Where filtering options.

Added in Saleor 3.14
This API is currently in Feature Preview and can be subject to changes at later point.

productVariants.sortBy ● ProductVariantSortingInput input

Sort products variants.

productVariants.before ● String scalar

Return the elements in the list that come before the specified cursor.

productVariants.after ● String scalar

Return the elements in the list that come after the specified cursor.

productVariants.first ● Int scalar

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

productVariants.last ● Int scalar

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

Type

ProductVariantCountableConnection object


Was this page helpful?