AlmondTill/G3N API

NewProductRelationInput

input type

Create-input for a ProductRelation.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the relation type (a relation carries no merchant code); when supplied it must be non-blank.
sourceProductIdID ID!yesThe source Product id.
targetProductIdID ID!yesThe target Product id — immutable after birth; self-relation refused.
relationTypeString String!yesThe canned relation type — immutable after birth; unknown kinds refused by the named gate.
ordinalIntnoThe suggestion rank (lower = first; 0..1000000) — defaulted to 0 when omitted.

Used by