When I create a model and add several items to it. For one item I setup scheduling and I see it working in the model table, where state
column reflects current state of the page either “scheduled”, “published” or “expired”.
But when I query same collection using GraphQL API, I always receive scheduled item whatever it’s state. Querying published
field always returns “published” value, even when state is “scheduled” or “expired”, so I can’t do the query based on it.
Here’s are some examples:
Query:
query Query {
lobbyBanner{
name
data {
priority
}
published
startDate
endDate
}
}
Part of the result:
As a solution I can always add a $gte and $lte to the query on start and end end date. But having state
variable available that would correctly reflect scheduling state would be much more reliable and useful.