Device Queries

For these steps we’re operating as Acme Living, LLC
Requests in this section require the x-allegion-installation-reference-id header
Listing Claimed Devices (Request #12)
Get Device Traits (Request #13)
Notice this query returns only the names of all trait fields but no other details. That’s because this is how request was formulated. We can expand the information returned in the query by building a more detailed request – but you have to know what’s available to do that.
GraphQL makes that easy with Schema Introspection.
Using Schema Introspection, developers can build queries using the Postman IDEs GraphQL interface, which evaluates the schema and returns valid values for the schema request type.
We’ll spend 5-10 minutes using the Postman GraphQL Schema Introspection tool to learn how to add more detail to this request.
Sidequest: GraphQL Introspection
The Postman Collection contains a folder called GraphQL API Schema (Generic Introspection), created to make it easy to use Postman’s GraphQL point-and-click interface to build and execute queries.
After generating an access token on the Authorization tab, Use the Yonomi Platform GraphQL Endpoint object to navigate the schema and select the fields you want in a query.
This approach makes it easy to explore the entire set of Queries and Mutations available in Yonomi Platform and create and save queries and mutations.
Get Lock Status Traits (Request #14)
What made this section unhelpful for you?
On this page
- Device Queries