Queries
Use the Church Online Platform API to search for data.
The return values below are only a subset of fields you can select.
Please use a GraphQL client with introspection to discover all of the available fields.Note: While all queries and mutations will be available via introspection, only the queries on this page are fully supported. Any other queries are used at your own risk, and may introduce breaking changes without notice.
Current Service
query CurrentService {
currentService(onEmpty: LOAD_NEXT) {
id
startTime
scheduleTime
endTime
content {
title
}
}
}
{
"data": {
"id": "2aa8a0e2-732c-4080-83ee-8ec5f8c86e5d",
"startTime": "2020-09-13T19:55:00Z",
"scheduleTime": "2020-09-13T20:00:00Z",
"endTime": "2020-09-13T21:00:00Z",
"content": {
"title": "Dangerous Prayers",
}
}
}
Arguments
Name | Type | Description |
---|---|---|
onEmpty | NullEventLoadMethod: LOAD_PREVIOUS | LOAD_NEXT | If a service is not currently running, you can instruct the query to either load the next or previous service. |
Service Fields
Name | Type | Description |
---|---|---|
id | ID | The unique identifier for the Service. |
startTime | Timestamp | An ISO8601 formatted timestamp for the start time of the service. The start time includes any pre-service chat or video offsets. |
scheduleTime | Timestamp | An ISO8601 formatted timestamp for the schedule time of the service. |
endTime | Timestamp | An ISO8601 formatted timestamp for the end time of the service. |
content | Content | The content assigned to the service. |
Content Fields
id | ID | The unique identifier for the Service |
title | String | The title for the service. |
Updated about 4 years ago
What’s Next