zoneIntersections
Subscription
Subscribes to changes in any ZoneIntersection based on the given filter.
Response
Returns ZoneIntersectionMessage
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterZoneIntersectionMessageInput | Filter detections by unique identifier of the device, unique identifier of the zone, message state, etc. |
Example
subscription zoneIntersections( $filter: FilterZoneIntersectionMessageInput) { zoneIntersections( filter: $filter ) { message { id zone { id name active createdAt updatedAt } track { id modelId tag startTime endTime finished metadata } startTime endTime } state }}{ "data": { "zoneIntersections": { "message": { "id": "3e8d4d0c-927e-8530-96d0-45d6d7e4010e", "zone": { "id": "9bc230c0-d8c6-87f8-89d2-790b14007ed2", "name": "name-bf20", "active": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z" }, "track": { "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": {} }, "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" }, "state": "END" } }}