Skip to main content

productVariants Query

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 miscellaneous

Filter product variants by given IDs.

productVariants.channel ● String scalar miscellaneous

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

productVariants.filter ● ProductVariantFilterInput input products

Filtering options for product variant.

productVariants.where ● ProductVariantWhereInput input products

Where filtering options.

productVariants.sortBy ● ProductVariantSortingInput input products

Sort products variants.

productVariants.before ● String scalar miscellaneous

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

productVariants.after ● String scalar miscellaneous

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

productVariants.first ● Int scalar miscellaneous

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 miscellaneous

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 products