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

NameTypeDescription
onEmptyNullEventLoadMethod: LOAD_PREVIOUS | LOAD_NEXTIf a service is not currently running, you can instruct the query to either load the next or previous service.

Service Fields

NameTypeDescription
idIDThe unique identifier for the Service.
startTimeTimestampAn ISO8601 formatted timestamp for the start time of the service. The start time includes any pre-service chat or video offsets.
scheduleTimeTimestampAn ISO8601 formatted timestamp for the schedule time of the service.
endTimeTimestampAn ISO8601 formatted timestamp for the end time of the service.
contentContentThe content assigned to the service.

Content Fields

idIDThe unique identifier for the Service
titleStringThe title for the service.

What’s Next