Skip to main content

BusinessRuleDateExpression

Represents a business rule date expression

type BusinessRuleDateExpression implements IBusinessRuleExpression {
id: ID!
type: BusinessRuleExpressionTypes!
number: Int
date: DateTime
string: String
operator: BusinessRuleDateExpressionOperators!
path: String
}

Fields

BusinessRuleDateExpression.id ● ID! non-null scalar

BusinessRuleDateExpression.type ● BusinessRuleExpressionTypes! non-null enum

BusinessRuleDateExpression.number ● Int scalar

Use when operator calculates days or minutes from now or today, or when targeting specific days, weeks or months

BusinessRuleDateExpression.date ● DateTime scalar

Use when operator is before or after.

BusinessRuleDateExpression.string ● String scalar

Use on time based operators, 00:00:00 24h format.

BusinessRuleDateExpression.operator ● BusinessRuleDateExpressionOperators! non-null enum

BusinessRuleDateExpression.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/date-and-time for options.

Interfaces

IBusinessRuleExpression interface

Interface for the BaseUser Type, where deferent types of BusinessRuleNodes derive from