How to get a list of series for the next x hours/days
Article 2681615, Status: VALIDATED
Table of Contents
❓Issue/Question
- How to get a list of series for the next x hours/days
💻Environment/Context
- Central Data
👌Resolution/Answer
- To do that, you need to specify the time period in the filters within your query that you will run against Central Data
- gte - the date from which you would like to have the series.
- lte - the date up to which you would like to have the series.
- There is an example of how to specify a time period within a Central Data Query
query GetAllSeriesInNext24Hours {
allSeries(
filter:{
startTimeScheduled:{
gte: "2024-07-17T15:00:30+02:00"
lte: "2024-07-18T15:00:30+02:00"
}
}
orderBy: StartTimeScheduled
) {
totalCount,
pageInfo{
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges{
cursor
node{
...allSeriesFields
}
}
}
}