detections
Query
Finds detections, which are objects detected by the Worlds system, based on a set of filters.
Response
Returns DetectionConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterDetectionInput! | Filter detections 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 | [DetectionsSort!]! | The field and direction by which to sort the results Default: |
Example
query detections( $filter: FilterDetectionInput!, $first: Int!, $after: String, $sort: [DetectionsSort!]!) { detections( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id timestamp metadata createdAt updatedAt direction } cursor } totalCount }}{ "filter": { "time": {} }, "first": 20, "sort": [ { "field": "DETECTION_TIME", "direction": "ASC" }, { "field": "TRACK_ID", "direction": "ASC" } ]}{ "data": { "detections": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "6dc9a1cf-6a1e-8bbd-ae52-f8c5902b1b53", "timestamp": "2025-01-01T00:00:00.000Z", "metadata": {}, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "direction": 635.4 }, "cursor": "cursor-1f3c" } ], "totalCount": 535 } }}