Skip to content

images

Query

Retrieve created and uploaded images.

Response

Returns ImageConnection

Arguments

NameTypeDescription
filterFilterImageInput

Filter images by data source id, timestamp, etc.

firstInt!

Returns the first n elements from the list.

Default: 20

afterString

Returns the elements in the list that come after the specified cursor.

sort[ImagesSort!]!

The field and direction by which to sort the results

Default: [{ field: TIMESTAMP, direction: ASC }, { field: ID, direction: ASC }]

Example

query images(
$filter: FilterImageInput,
$first: Int!,
$after: String,
$sort: [ImagesSort!]!
) {
images(
filter: $filter,
first: $first,
after: $after,
sort: $sort
) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
dataSourceId
timestamp
url
thumbnailUrl
}
cursor
}
totalCount
}
}