Skip to main content

ControlConditionType

One condition of a control: a fact from the fixed catalogue, an operator and its value. At most one of number, text, list, flag or range is set; none for is_empty, is_set, any, all and none.

type ControlConditionType {
fact: String!
flag: Boolean
list: [String!]
number: Float
op: String!
range: [Float!]
text: String
where: [ControlChildPredicateType!]
}

Fields​

ControlConditionType.fact ● String! non-null scalar​

The catalogue fact the condition tests, or custom:<entity>.<key> for one of the organization's own fields.

ControlConditionType.flag ● Boolean scalar​

The value for a yes/no fact.

ControlConditionType.list ● [String!] list scalar​

The values for a choice fact compared with in.

ControlConditionType.number ● Float scalar​

The value for a money, percent or number fact (for a collection fact, the count).

ControlConditionType.op ● String! non-null scalar​

The operator: gt, gte, lt, lte, eq, between, is, is_not, in, is_empty, is_set, or for a collection fact any, all or none.

ControlConditionType.range ● [Float!] list scalar​

The lower and upper bound (both included) for a money, percent or number fact compared with between.

ControlConditionType.text ● String scalar​

The value for a choice fact compared with is or is_not.

ControlConditionType.where ● [ControlChildPredicateType!] list object​

A collection fact only: the checks a child row must all meet to be counted.

Member Of​

ControlPresetType object ● ControlRuleType object ● ControlTestConditionType object