AsyncQuery Object

For each query that is executed in the background an instance of AsyncQuery is created. It provides an expiring link to the query result that will be present when the query execution is complete.

Fields

The fields in this section list which values can be retrieved when querying AsyncQuery records.

account (Account)

The account this record belongs to.

completedAt (ISO8601Timestamp)

The date and time at which the async query was set to the status completed.

createdAt (ISO8601Timestamp)

The date and time at which the record was created.

errorCount (Int)

The number of errors encountered during the execution.

id (ID!)

Unique identifier of the record.

person (Person)

The person or application who created the async query.

resultCount (Int)

The number of affected records.

resultUrl (String)

Expiring link to the JSON result of the async query. It is available once the async query execution has been completed.

startedAt (ISO8601Timestamp)

The date and time at which the async query was set to status in_progress.

status (AsyncQueryStatus)

The current status of the async query. Valid values are:

  • queued: The async query has been received and is waiting to be executed.
  • in_progress: The async query is being executed.
  • completed: The async query execution has been completed. Results can be found by downloading the result_url.
updatedAt (ISO8601Timestamp)

The date and time of the last update of the record. If the record has no updates it contains the createdAt value.

Implements

AsyncQuery implements the following interfaces. This means that fragments defined on these interfaces may be used in queries returning a AsyncQuery.