sensors
Query
Find sensors based on a set of filters.
Response
Returns SensorConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterSensorInput | Filter sensors based on id, name, type, or position. |
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 | [SensorsSort!]! | The field and direction by which to sort the results Default: |
Example
query sensors( $filter: FilterSensorInput, $first: Int!, $after: String, $sort: [SensorsSort!]!) { sensors( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id name description type address metadata } cursor } totalCount }}{ "first": 20, "sort": [ { "field": "NAME", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "sensors": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "0843eeed-d99e-8b5f-808f-6e67fc54d886", "name": "name-28d4", "description": "description-4a29", "type": "BOOLEAN", "address": "address-ca07", "metadata": {} }, "cursor": "cursor-16fc" } ], "totalCount": 734 } }}