geofences
Query
Search for geofences based on a set of filters.
Response
Returns GeofenceConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterGeofenceInput | Filter geofences by unique identifier, name, 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 | [GeofencesSort!]! | The field and direction by which to sort the results Default: |
Example
query geofences( $filter: FilterGeofenceInput, $first: Int!, $after: String, $sort: [GeofencesSort!]!) { geofences( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id name labels active } cursor } totalCount }}{ "first": 20, "sort": [ { "field": "NAME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "geofences": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "a9cd2c5d-0ca1-8c25-a90a-11ef7a2bdb24", "name": "name-163f", "labels": [ "labels-914c" ], "active": false }, "cursor": "cursor-a5f6" } ], "totalCount": 512 } }}