Skip to main content

Use cases

Data tables

Display records in a table format.

Log interfaces

Display logs in tabular format.

Features

All the common API features, plus:
Enables users to order the results based on a specified column and sort direction.
  • Use orderByColumn in the query to specify the column to order by
  • Use sort to specify the sort direction (ASC or DESC)
Provides built-in cursor-based pagination for navigating through large data sets.
  • Use first to specify the maximum number of records to return
  • The pageInfo object in the response provides pagination details
See our API pagination guide to learn more.

Example

Example 1: Simple data grid query

Get records for the current month ordered by timestamp in descending order.

Usage

Arguments

The fields for querying Data Grid records.
DataPoolInput
required
The Data Pool to be queried.
TimeRangeInput
The time range for retrieving the records.
String
The time zone to use. Dates and times are always returned in UTC, but setting the time zone influences relative time ranges and granularities.You can set this to “America/Los_Angeles”, “Europe/Berlin”, or any other value in the IANA time zone database. Defaults to “UTC”.
[String!]
required
The columns to retrieve.
Int
The index of the column to order the table by. The index is 1-based. If not provided, records will be ordered by their timestamp by default.
Sort
The sort order of the rows. It can be ascending (ASC) or descending (DESC) order. Defaults to descending (DESC) order when not provided.
String
The filters to apply to the records, in the form of SQL. You may only filter on columns included in the columns array input.
Int
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
String
The cursor to use when paging forward.
Int
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
String
The cursor to use when paging backward.

Response

The Data Grid table’s node. This type represents a single row of a Data Grid table.
[String!]
required
The Data Grid table’s headers.
[String]
required
An array of the values for the row.

Embeddable UI components

useDataGrid

A React Hook for fetching tabular data from the Data Grid API.