geofenceIntersections
Query
Find intersections for a geofence based on a set of filters.
Response
Returns GeofenceIntersectionConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterGeofenceIntersectionInput! | Filter geofence intersections based on the geofence id, 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 | [GeofenceIntersectionsSort!]! | The field and direction by which to sort the results Default: |
Example
query geofenceIntersections( $filter: FilterGeofenceIntersectionInput!, $first: Int!, $after: String, $sort: [GeofenceIntersectionsSort!]!) { geofenceIntersections( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id startTime endTime } cursor } totalCount }}{ "filter": { "time": {} }, "first": 20, "sort": [ { "field": "START_TIME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "geofenceIntersections": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "d5c01ed1-9d21-87b5-90c4-9ac51d76470f", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" }, "cursor": "cursor-ac4c" } ], "totalCount": 946 } }}