type
Condition
type Condition struct {
kind ConditionKind
conditions []Condition
scope ConditionScope
path string
operator ConditionOperator
values []DefaultValue
issues []Issue
}An immutable presentation-only logical or scalar condition.
Kind()ConditionKind- Return the logical or predicate node kind.
Conditions()[]Condition- Return detached child expressions.
Scope()ConditionScope- Return the predicate value scope.
Path()string- Return the path relative to the predicate scope.
Operator()ConditionOperator- Return the scalar predicate operator.
Values()[]DefaultValue- Return detached typed scalar operands.
Condition visibility never grants access or removes hidden document values.
Methods
Condition.Conditions()Conditions returns detached child expressions for All, Any, and Not nodes.
Condition.Kind()Kind reports whether this node is a logical group, negation, or predicate.
Condition.Operator()Operator returns the predicate's scalar comparison operator.
Condition.Path()Path returns the predicate path relative to its configured scope.
Condition.Scope()Scope reports which value tree a predicate reads.
Condition.Values()Values returns detached, canonically encoded predicate operands.