Skip to main content

has_relation_meta

Synopsis​

@has_relation_meta(MetadataKey) -> Boolean

Description​

Checks if the object's relation metadata contains a specified key.

info

Available in Contextal Platform 1.0 and later.

Parameters​

Name of the relation metadata key.

Return value​

Boolean: true if the object's relation metadata contains a given key, false otherwise.

Examples​

@has_relation_meta($compressed_size)
  • This matches all objects, which have a relation metadata key named compressed_size (which also means they are compressed)