RelationDefinition
Links the cards of two card definitions, a source and a target: a source card is related to the target cards whose card property value matches its own. Segments (through relations criteria) and endpoints (through relation content) follow relation definitions.
RelationDefinitionFields
When the relation definition was created (UTC).
Id of the user who created the relation definition.
Free-text note about the relation definition.
Display hint for clients such as Studio. See RelationDisplayCategory.
Endpoints whose live or pending content follows the relation definition.
Returns the elements in the list that come after the specified cursor.
Returns the first n elements from the list.
Global id of the relation definition: base64 of RelationDefinition:<raw id>. relationDefinitionById and the update, delete and restore mutations take it. The raw id (e.g. productAccessories) is what relationDefinitions(where: { id }), RelationsCriteriaInput.relationDefinitionId and endpoint content selections use.
True if an endpoint or a segment uses the relation definition. While it's true, deleteRelationDefinition fails.
True if the relation definition is archived. relationDefinitions returns archived ones too and can't filter on this field, so check it in the results. restoreRelationDefinition restores it.
When the relation definition last changed (UTC).
Id of the user who last changed the relation definition.
Name of the relation definition.
State of the relation definition. See RelationDefinitionStatus.
Segments whose criteria include a relations criterion for the relation definition.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Source card definition.
Global id of the source card definition (CardDefinition.id).
Criteria on the source side, as a JSON list of objects, each with an operator. Exactly one dynamic item, in sourceCriteria or targetCriteria, links the cards: {"operator":"dynamic","sourcePropertyId":"sku","targetPropertyId":"parentSku"} relates a source card to the target cards whose parentSku matches its sku. Other items use the search criteria shapes (e.g. equals) with source card property ids, and filter the source cards when the relation is followed from a target card.
Card property ids of the source card definition that the criteria use: the dynamic item's sourcePropertyId and the property ids of the filters in sourceCriteria.
Label for the relation on the source side (e.g. Accessories). Null when not set.
Labels for grouping and filtering relation definitions.
Target card definition.
Global id of the target card definition (CardDefinition.id).
Criteria on the target side, same shape as sourceCriteria. Items other than the dynamic one filter the target cards a source card is related to, by target card property id. Example: [{"operator":"equals","propertyId":"status","values":["Active"],"invert":false}] keeps only target cards whose status is Active.
Card property ids of the target card definition that the criteria use: the dynamic item's targetPropertyId and the property ids of the filters in targetCriteria.
Label for the relation on the target side (e.g. Accessory of). Null when not set.
How the target cards related to a source card are ordered. Null = no order set.
Id of the tenant that owns the item.
Was this page helpful?