Admin API / Types
ProductWhereInput
InputFilters for listings. A filter that is omitted or an empty list matches everything (no narrowing on that field). Within a list field, values compose with OR. Across fields, filters compose with AND. An ID or SKU list holds at most 100 values; more fails with VALIDATION_ERROR.
input ProductWhereInputInput fields
| Field | Type | Description |
|---|---|---|
auction | AuctionWhereInput | Narrows listings that have an activeAuction: such a listing matches only when its auction matches every given field. A listing with no activeAuction passes. To list auctions only, also send saleModes: [AUCTION]. |
availability | [AvailabilityState!] | Match listings in any of the given availability states. |
collectionIds | [ID!] | Match listings in any of these collections, hidden collections included: the listings added to a manual collection, or the listings that the rules of an automated collection select. An ID that names no listing collection matches nothing, and so does an automated collection whose rules field fails with an internal error. |
createdAt | DateTimeRangeInput | Match listings whose createdAt falls within this range. |
customOrderPaymentStatus | [OrderPaymentStatus!] | Match custom orders (listings with customOrder) whose customOrder.paymentStatus is any of these values. A listing that any buyer can buy never matches. [NOT_PAID] gives the custom orders that wait for the buyer to pay. On Query.products, a non-empty list needs the ADMIN or OWNER role: a lower role gets a FORBIDDEN error with requiredRole: ADMIN. |
lifecycle | [ProductLifecycle!] | Match listings in any of the given lifecycle stages. DELETED matches only in a list with includeDeleted: true. |
saleModes | [ProductSaleMode!] | Match listings in any of the given sale modes. |
sellerIds | [ID!] | Match listings of any of these sellers. A seller whose listings this list does not return matches nothing. |
skus | [String!] | Match listings with a variant whose SKU equals one of these values, case-insensitive, with leading and trailing spaces ignored. Hidden variants match. Deleted variants do not match. |
updatedAt | DateTimeRangeInput | Match listings whose updatedAt, the latest change to the listing, to one of its variants or to one of its auctions, or the seller's latest vacation mode change, falls within this range. A buyer view, an order or a bid also counts as a change. from inclusive, to exclusive. The recorded time is the start of the write, which can be earlier than the time the change becomes visible: when you read changes in consecutive ranges, overlap each range with the previous one. |
visibility | [ProductVisibility!] | Match listings in any of the given visibility states. |