Skip to main content
Version: 3.x

products

List of the shop's products. Requires one of the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.

products(
filter: ProductFilterInput
sortBy: ProductOrder
channel: String
before: String
after: String
first: Int
last: Int
): ProductCountableConnection

Arguments

filter (ProductFilterInput)

Filtering options for products.

sortBy (ProductOrder)

Sort products.

channel (String)

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

before (String)

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

after (String)

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

first (Int)

Return the first n elements from the list.

last (Int)

Return the last n elements from the list.

Type

ProductCountableConnection