AlmondTill/G3N API

EditCollectionInput

input type

Edit-input for a Collection. Every field optional, at least ONE required; supplied fields REPLACE, omitted fields are preserved. A supplied predicate replaces WHOLESALE (it can never be cleared — a dynamic collection always carries one) and is re-gated per ref exactly like create; excludedProductIds replaces wholesale (an empty list releases); sortMode replaces (never cleared — it has a birth default). collectionType is NOT editable (immutable at birth). The dynamic-only fields are REFUSED on a STATIC collection (the NAMED cross-type gate, RC-h).

Fields

FieldTypeRequiredNotes
captionStringnoNo further notes.
codeStringnoNo further notes.
predicateCollectionPredicateInputnoThe replacement predicate (wholesale; ≥1 axis) — dynamic collections only.
excludedProductIdsID [ID!]noThe replacement exclusion list (wholesale; an empty list releases) — dynamic only.
sortModeStringnoThe replacement sort mode (canned) — dynamic only.

Used by