View Object Availability Summary
You can query to see the availability on an object in the same way you would query for an object’s relationships (See here). Every object subject to availability will have an availability
object in its query fields.
query getEpisode {
getEpisode(
uid: "c93c7e88-3eca-48ec-9191-a644f93d454e") {
availability {
objects {
start
end
dimensions {
objects {
slug
values {
objects {
slug
}
}
}
}
}
}
}
}
Response:
{
"data": {
"getEpisode": {
"availability": {
"objects": [
{
"start": "2020-01-01T00:00:00Z",
"end": "2023-01-01T00:00:00Z",
"dimensions": {
"objects": [
{
"slug": "operating-system",
"values": {
"objects": [
{
"slug": "ios"
}
]
}
}
]
}
}
]
}
}
}
}
Updated 7 months ago