Query / commerce
listProducts
List products with pagination, filtering, and sorting. Requires product:list permission.
Arguments
firstIntNumber of items from the start
afterStringCursor to start after
filterProductFilterInputFilter criteria
sort[ProductSortInput!]Sort order
Returns ProductConnection!
Explore in a view
View exact SDL
"""
List products with pagination, filtering, and sorting. Requires product:list permission.
"""
listProducts(
"""Number of items from the start"""
first: Int
"""Cursor to start after"""
after: String
"""Filter criteria"""
filter: ProductFilterInput
"""Sort order"""
sort: [ProductSortInput!]
): ProductConnection! @topic(names: ["commerce"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.