WithRelationTo
withRelationTo( contentItem: Int! type: String )
Returns all content items that have a relation pointing to the specified content item.
Parameters
contentItem:
Int!-
The content item from which to search, specified by ID (that is, Content Store internal ID).
type:
String-
The type of relation to search for. If specified, then only content items that have the specified type of relation will be returned. Otherwise, all content items with relations pointing to specified content item are returned, irrespective of type.
Examples
withRelationTo(contentItem: 45)
Returns all content items with a relation pointing to the content item
with the
Content Store
internal ID 45
.
withRelationTo(contentItem: 45, type: "relatedMedia")
Returns all content items with a relatedMedia
relation pointing to the content item with the
Content Store
internal ID 45
.