API Overview
API Mutation
API Query
API Subscription
Webhooks
Hardware

Simple Query for Signals

Getting the last Signals with a simple Query through our GraphQL API can be done like this….

query {
signalsConnection(paginate: { last: 1 }) {
edges {
node {
parentPoint {
name
}
type
unit
timestamp
data {
rawValue
}
}
}
}
}

…which in return gives you this….

{
"data": {
"signalsConnection": {
"edges": [
{
"node": {
"parentPoint": {
"name": "TV"
},
"type": "Temperature",
"unit": "ºC",
"timestamp": "2021-01-18T13:39:26.000000000+0000",
"data": {
"rawValue": "22"
}
}
}
]
}
}
}
astronaut

Ready to get started?