Skip to content

products

Queryin Catalog

Get a paginated list of all products without search or filtering

Arguments

ArgumentTypeDescription
pageInt!Default 1
pageSizeInt!Default 20

Returns

ProductsResult!

FieldTypeDescription
items[Product!]!List of products in the result
paginationPagination!Where this page sits within the full result set
facets[Facet!]Available facets for filtering
queryIdStringThe search engine's id for this search, for click and conversion analytics that attribute an event to the search it came from. Null where the engine issues none, or analytics is not enabled for it.
correctedSearchTermStringThe term the products were found for, where the term as typed found nothing and the engine's top suggestion did. Null when the term was searched as given, and always null with exactSearchTerm.
redirectSearchRedirectWhere one of the engine's keyword rules sends this search term instead of to a result page. Null where the engine has no matching rule.

Example

query {
products(page: 1, pageSize: 50) {
pagination {
totalCount
hasNextPage
}
items {
id
slug
name
variant {
id
sku
price {
gross {
centAmount
currency
}
}
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccResolved