Skip to content
SIBISIBI Developers
Esc
navigateopen⌘Jpreview
On this page

OrderingQuery.assets()

Look up the assets installed at a property, addressed the same way as reviewOrder(). Fails if the address does not resolve to a property in the system. With no address, browses every asset across all the properties the caller can see.

type OrderingQuery {
  assets(address: OrderingAddressInput, first: Int = 10, after: String): OrderingAssetsConnection!
}

Input

address (optional)

OrderingAddressInput - The property address to look up assets for. If omitted, browses every asset across all properties the caller can see (see the warning above).

first (optional)

Int - The maximum number of assets to return per page. Defaults to 10.

after (optional)

String - A cursor value used for pagination. Use the cursor value from the last edge of the previous response to fetch the next page.

Example:

query GetAssetsAtProperty {
  ordering {
    assets(address: { line1: "123 Main St", city: "Anytown", stateOrProvince: "CA", postalCode: "90210" }) {
      edges {
        cursor
        node {
          id
          name
        }
      }
    }
  }
}

Response

OrderingAssetsConnection

OrderingAssetsConnection - A connection object containing a list of assets.

OrderingAssetsConnection

type OrderingAssetsConnection {
  edges: [OrderingAssetsEdge!]!
}

edges

OrderingAssetsEdge[] - An array of edges, each containing an asset node.

OrderingAssetsEdge

type OrderingAssetsEdge {
  node: OrderingAsset!
  cursor: String!
}

node

OrderingAsset - The asset object containing all asset details.

cursor

String - A unique cursor value for this edge. Use this value as the after parameter in subsequent queries to fetch the next page of results.

Was this page helpful?