Add calendar aligned months
All checks were successful
Tests / Tests (pull_request) Successful in 16s

This commit is contained in:
2024-09-20 19:05:25 -07:00
parent c013228f79
commit 75aa847ae1
2 changed files with 15 additions and 5 deletions

View File

@@ -99,6 +99,7 @@ input DatetimeRangeAggregationInput {
startDatetime: DateTime!
endDatetime: DateTime!
interval: TimeInterval!
feature: String! = "created_at"
}
"""
@@ -115,16 +116,19 @@ input TimeInterval {
hours: Int = 0
days: Int = 0
weeks: Int = 0
"""
Assumes a month is 30 days long
"""
months: Int = 0
"""
Assumes a year is 365 days long
"""
years: Int = 0
"""
Example usage:
True eg 1/15-3/15 => [(1/15,1/31), (2/1,2/28), (3/1,3/15)]
False eg 1/15-2/15 => [(1/15,2/15), (2/16,3/15)]
"""
calendarAlignedMonths: Boolean! = true
}
input FilterInput @oneOf {