Skip to main content

Seasonal node

Description

The Seasonal node represents one or more dates that occur every year, e.g. 17 August

Usage

The Seasonal node is an input, so it can be added to the segments of comparison nodes.

alt text

It can be:

Configuration

alt text
  • Parameter - select a compatible parameter to use as a placeholder value (if any have been defined in the query).
  • Seasonal - the default value is today. Select it and use the calendar picker to select one or more dates.

Example

Fetch all seasonal date intervals that start before 17 August

In full detail:

Fetch items of the Seasonal Date Intervals design where their Start Date is less than 17 August

alt text
See JSON code
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_seasonalDateIntervals"
},
"children": [
{
"type": "LessThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_seasonalDateIntervalsStartDate"
}
},
{
"type": "Seasonal",
"properties": {
"value": ["2022-08-17T16:13:11.000Z"]
}
}
]
}
]
}