Skip to content
Select theme

Query limits

AI agent getting started? Read Agents: start here first.

Queries bound their work so a large model can return a useful answer. Check the returned completeness state before treating a result as exhaustive.

A page limit controls one response. A traversal bound limits how far a query follows relationships. A continuation resumes only the query forms that explicitly support pagination.

  • Object pages and row pages take a limit of 1–100. Object queries take at most 3 link steps. Each filter list takes at most 8 filters, and membership lists take at most 100 values.
  • Graph walks take at most 200 starts, 3 steps and 3 total levels, with at most 8 named edge types per step. objectLimit is at most 200; hopLimit is at most 400. A level reads at most 2,000 rows.
  • queryRows takes at most 3 hops, 1–8 named edge types per hop (or "any"), and 1–8 target types when supplied. It allows 32 columns, 2 group keys, 4 measures, 2 having comparisons and up to 2,000 groups. A joined path prefix over 20,000 rows is refused as over-bound, meaning the query exceeds a supported size limit. Repeat walks take at most 200 starts and 2,000 rows per level; tracking more than 400,000 traversal states is refused as over-bound.
  • Paths take maxLength of 1–6, maxPaths of 1–10 and at most 8 named edge types. A search frontier is capped at 200 objects and a level at 2,000 rows.

A graph’s bounded.state: "bounded", a groups answer’s bounded: true, or a path’s outcome.state: "bounded" means a query limit prevented a complete answer. Inspect by where present. Narrow the start or edge types before treating the result as complete. Use pagination where a continuation is supplied; other graph forms do not page.

A one-object graph can return hiddenConnections, counts of readable relationships to objects you cannot read, grouped by edge type and direction. It does not return those objects’ properties. For grouped path measures, ends: "all" adds hidden counts; numeric values still measure readable objects. A missing object at the other end of a relationship is not proof that no relationship exists.

  1. If a query is rejected, check its field names, declared types and properties, directions and bounds.
  2. For head-moved, rerun the read: the branch changed during the query.
  3. For a stale or invalid continuation, restart from continuation: null.

See refusal names.