NewCollectionInput
input type
Create-input for a Collection. The tenant (org group) is derived SERVER-SIDE from the principal — NEVER supplied here; collectionType is REQUIRED + immutable; a STATIC create refuses predicate/excludedProductIds/sortMode (the NAMED cross-type gate); a DYNAMIC create REQUIRES a predicate (≥1 axis) and stamps sortMode newest when omitted; every predicate/exclusion ref is tenant-scoped server-side and must be ACTIVE.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — the merchant code when given, else 'Collection'; when supplied it must be non-blank. |
collectionType | CollectionType CollectionType! | yes | The canned collection kind — immutable after birth. |
predicate | CollectionPredicateInput | no | The predicate — REQUIRED on dynamic (≥1 axis), REFUSED on static (the NAMED gate). |
excludedProductIds | ID [ID!] | no | Manual exclusions (at most 256, unique) — dynamic only; each tenant-scoped + active. |
sortMode | String | no | The canned sort mode (newest | price-asc | price-desc | manual-pins-first) — dynamic only; defaulted newest. |
code | String | no | No further notes. |