Skip to content

reportObjects

Get report objects with report-specific filtering and pagination.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String Returns the elements in the list that occur after the specified cursor.
last Int Returns the last n elements from the list.
before String Returns the elements in the list that occur before the specified cursor.
filter [ReportObjectFilterInput!] Generic filters for compatibility with existing queries.
sortBy ReportObjectSortByField Field to sort by.
sortOrder SortOrder Sort order (ASC/DESC).

Returns

ReportObjectConnection!

Sample

query {
  reportObjects(first: 10) {
    nodes {
      id
      name
      objectTypeDisplayName
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "reportObjects": {
      "nodes": [
        [
          {
            "id": "00000000-0000-0000-0000-000000000000",
            "name": "example-string",
            "objectTypeDisplayName": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}