tracks
Query
Finds tracks, which are records of a detected object over time, based on a set of filters.
Response
Returns TrackConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterTrackInput! | Filter tracks based on the originating device, time period, etc. |
first | Int! | Returns the first n elements from the list. Default: |
after | String | Returns the elements in the list that come after the specified cursor. |
sort | [TracksSort!]! | The field and direction by which to sort the results Default: |
Example
query tracks( $filter: FilterTrackInput!, $first: Int!, $after: String, $sort: [TracksSort!]!) { tracks( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id modelId tag startTime endTime finished metadata } cursor } totalCount }}{ "filter": {}, "first": 20, "sort": [ { "field": "TRACK_START_TIME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "tracks": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "58b9a930-5ec7-8c7d-8931-530b08e58c11", "modelId": "f3b1dcb1-ac50-8fce-8509-3e824b58448b", "tag": "tag-70cb", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "finished": false, "metadata": {} }, "cursor": "cursor-f5fc" } ], "totalCount": 633 } }}