Marketplace API / Types
Collection
ObjectA curated group of products.
type Collection implements NodeFields
| Field | Type | Description |
|---|---|---|
displayName | String! | Display name shown in lists, headings, and breadcrumbs. |
featured | Boolean! | Whether the seller marked the collection as featured. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
image | Image | Thumbnail image for the collection, or null when none is set. |
pinned | Boolean! | Whether the seller pinned the collection. |
products | ProductConnection! | 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. |
slug | String! | URL-safe identifier, stable across renames. |