measurements
Query
Finds measurements of a sensor based on a set of filters.
Response
Returns MeasurementConnection
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterMeasurementInput! | Filter measurements based on the originating sensor, 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 | [MeasurementsSort!]! | The field and direction by which to sort the results Default: |
Example
query measurements( $filter: FilterMeasurementInput!, $first: Int!, $after: String, $sort: [MeasurementsSort!]!) { measurements( filter: $filter, first: $first, after: $after, sort: $sort ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { id timestamp value } cursor } totalCount }}{ "filter": { "time": {} }, "first": 20, "sort": [ { "field": "TIMESTAMP", "direction": "ASC" }, { "field": "ID", "direction": "ASC" } ]}{ "data": { "measurements": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": true, "startCursor": "startCursor-867d", "endCursor": "endCursor-f100" }, "edges": [ { "node": { "id": "3fc31af5-3101-80eb-bd3c-5867043a2b05", "timestamp": "2025-01-01T00:00:00.000Z", "value": "value-e12d" }, "cursor": "cursor-06e4" } ], "totalCount": 930 } }}