Skip to main content

Relation

A relation between a source object and a target object.

type Relation {
object: Object!
subject: Object!
type: RelationType!
hash: Hash
lifecycle: Lifecycle!
source: Object!
target: Object!
}

Fields

Relation.object ● Object! non-null object objects

The object that the relation is from.

Relation.subject ● Object! non-null object objects

The object that the relation is to.

Relation.type ● RelationType! non-null object relation-types

The type of relation.

Relation.hash ● Hash scalar common

Optional value of the hash value previously read from the directory.

If a hash value is specified and the relation being mutated already exists, the update will be rejected unless the hash value matches the existing relation's hash value. This can be used to ensure that the relation being mutated has not been modified since it was read from the directory.

Relation.lifecycle ● Lifecycle! non-null object common

Metadata about the relation type's lifecycle.

Relation.source ● Object! non-null object objects

The source of the relation. Deprecated: use object instead.

Relation.target ● Object! non-null object objects

The target of the relation. Deprecated: use subject instead.

Member of

RelationConnection object ● SetRelationResult object