Skip to main content
Skip table of contents

RelationsModel

The RelationsModel represents a sequence of RelationModels.

implements: hash, sequence<RelationModel>, scalar
bundle: online channel standard (oc)
since 4.2.0
The RelationsModel represents a sequence of RelationModels.

The RelationsModel represents a set of Relation instances from the perspective of an asset. Relations can be accessed via the sequence methods.

Filtering

parents ↦ RelationsModel
since 4.2.0
Returns the subset of the relations whose output asset is the parent asset.

children ↦ RelationsModel
since 4.2.0
Returns the subset of the Relations whose Output Asset is the Child Asset.

<String:key> ↦ RelationsModel
since 4.2.0
Returns the subset of the relations whose relation type is 'key', as long as the value of 'key' corresponds to no other hash key of the RelationsModel.

Sorting

ascending ↦ RelationsModel
since 4.2.0
Returns the relations, sorted in ascending order of their sorting attribute.

descending ↦ RelationsModel
since 4.2.0
Returns the relations, sorted in descending order of their sorting attribute.

[used as scalar] ↦ String
since 4.2.0
If the contained elements are accessible as scalar-String: return the String scalar of the first element.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.