Skip to main content

Query rows

Use the structured query model for most requests. It supports:
  • bounded pagination;
  • field projection;
  • nested and, or, and not filters;
  • sorting, grouping, and distinct selection;
  • type-aware casts;
  • supported joins and common table expressions on surfaces that explicitly allow them.
This returns up to 100 ready orders with totals of at least 100, newest first. Show it as a bounded page in the UI. For a full scan, follow the returned paging contract and use a stable order. See bounded reads.

Platform API read paths

The generated Platform API exposes two complementary read operations: Both return data, results, and next, plus total only when count is requested. The body-based query does not publish a larger guaranteed page ceiling. Keep pages bounded and prefer keyset-like business filters for large data sets instead of increasing skip indefinitely.

Preview a read plan

Use debug: true on api.getDatabaseData to inspect the complete estimated read plan before fetching records. count: true also previews the count plan. The result contains debug.explain and optional debug.countExplain; it contains no records or pagination result. Omit debug to fetch records normally.
This option retains normal data access checks and query validation. Use it on getDatabaseData, rather than row, count or walk helpers. An unsupported data source rejects the diagnostic request without running the read. Continue with databases.
Last modified on November 8, 2026