Example GraphQL Queries

Some sample GraphQL queries to get you started

Assets

Get the assets and their associated provisions:

{
  getAssets {
    provisions {
      __typename
      lastUpdatedAt
    }
    __typename
    ... on Property {
      postcode
    }
    ... on Vehicle {
      identifier
    }
  }
}

Try in Explorerarrow-up-right

Accounts

Get the accounts with their logos and deep links to within Onedox:

Try in Explorerarrow-up-right

Provisions

Get provisions along with their type and some more details for vehicles and media packages:

Try in Explorerarrow-up-right

Documents

Get documents for a particular account along with date and charges (where available):

Try in Explorerarrow-up-right n.b. you will need to replace the id input with one that is valid for your own Onedox account.

Get all accessible documents along with their iOS deep link and the name of the provider that they came from:

Try in Explorerarrow-up-right

User

Get the authenticated user and access permissions:

Try in Explorerarrow-up-right

Last updated