BusinessRuleArrayExpression
Array-based expression for collection operations, filtering, and element validation.
Provides logical operators for evaluating conditions across array elements including universal quantification (all), existential quantification (some), negation (none), and membership testing (contains). Supports both simple value matching and complex nested expressions for comprehensive array processing.
type BusinessRuleArrayExpression implements IBusinessRuleExpression {
id: ID!
type: BusinessRuleExpressionTypes!
operator: BusinessRuleArrayExpressionOperators!
string: String
number: Float
path: String
}
Fields
BusinessRuleArrayExpression.id
● ID!
non-null scalar
Unique identifier for this expression within the business rule system
BusinessRuleArrayExpression.type
● BusinessRuleExpressionTypes!
non-null enum
Data type classification of the expression determining available operators and validation rules
BusinessRuleArrayExpression.operator
● BusinessRuleArrayExpressionOperators!
non-null enum
Logical operator defining how the condition should be applied to array elements
BusinessRuleArrayExpression.string
● String
scalar
String value to match against array elements (used with 'contains' operator for simple value matching)
BusinessRuleArrayExpression.number
● Float
scalar
Numeric value to match against array elements (used with 'contains' operator for simple value matching)
BusinessRuleArrayExpression.path
● String
scalar
Path to the field, can be used to add additional expressions and calulations on the field. Use $ to target the field's value. When omitted the field's value is used. The expression will be used on the left hand side of the operator. Can also be used to target a specific property in a complex expression's sub-expression Check https://gorules.io/docs/rules-engine/expression-language/array for options.
Interfaces
IBusinessRuleExpression
interface
Base interface for all business rule expression types defining common properties and behavior.
Expressions are the fundamental building blocks for business rule conditions and calculations. Each expression type provides specific operators and validation logic for different data types including strings, numbers, dates, arrays, and complex aggregations.