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.
It can be:
-
added to these comparison nodes:
- Equals
- Greater than
- Less than
- Not Equals
-
compared against an Attribute node (of Seasonal type)
Configuration
- 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
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"]
}
}
]
}
]
}