Marketplace API / Types

Collection

Object

A curated group of products.

type Collection implements Node

Fields

FieldTypeDescription
displayNameString!
Display name shown in lists, headings, and breadcrumbs.
idID!
A globally unique ID. Treat this value as an opaque string.
imageImage
Thumbnail image for the collection, or null when none is set.
pinnedBoolean!
Whether the seller pinned the collection.
productsProductConnection!
Products in this collection. Accepts the same arguments as the top-level products query, except where.collectionIds is not permitted. Defaults to the collection's preferred sort order. Requesting this field for many collections runs a separate product search for each collection; use Query.products with where.collectionIds to search across collections in one request.Arguments:
after: String — Forward cursor. Mutually exclusive with offset.
context: ProductSearchContextInput — Search context controlling product eligibility. Completed and cancelled auctions are excluded by default. Media filtering is not currently applied.
facets: [ProductFacetRequestInput!] — Facets to compute for the matching products.
first: Int — Maximum number of products to return. Defaults to 20. Values above 100 are reduced to 100.
offset: Int — Zero-based offset for page-based pagination. Providing it with after is rejected. Only the first 10,000 matches can be paged; pages are shortened at the boundary, and offsets of 10,000 or more return an empty page.
query: String — Free-text query.
sort: [ProductSortInput!] — Sort order. Applied left to right. Defaults to the collection's seller-configured sort.
where: ProductSearchWhereInput — Filters to apply. collectionIds is not permitted because this collection is always applied.
slugString!
URL-safe identifier, stable across renames.

Returned by