Queries
Was this section helpful?
What made this section unhelpful for you?
On this page
- Queries
Queries are API requests to retrieve the state(s) or value(s) of one or more objects in Yonomi Platform.
YP device data can be queried with as many or as few traits and associated data as needed using GraphQL fragments.
It’s important to note that queries pull data from the Device Shadow in the cloud – not the device. This means queries DO NOT impact device battery life.
To determine the fields for the fragment, please refer to the traits documentation or perform an introspection using the GraphQL Schema.