Data Grid
Get a table of records from a Data Pool.
Use cases
Data tables
Display records in a table format.
Log interfaces
Display logs in tabular format.
Features
All the common API features, plus:
Ordering
Ordering
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)
Pagination
Pagination
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.
The Data Pool to be queried.
The time range for retrieving the records.
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”.
The columns to retrieve.
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.
The sort order of the rows. It can be ascending (ASC
) or descending (DESC
) order. Defaults to descending (DESC
) order when not provided.
The filters to apply to the records, in the form of SQL. You may only filter on columns included in the columns
array input.
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
The cursor to use when paging forward.
The number of rows to be returned when paging forward. It can be a number between 1 and 1,000.
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.
The Data Grid table’s headers.
An array of the values for the row.