You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**expand**|`Record<string, [__schema0](./__schema0)>`| optional | Recursive relation loading map. Keys are lookup/master_detail field names; values are nested QueryAST objects that control select, filter, sort, and further expansion on the related object. The engine resolves expand via batch $in queries (driver-agnostic) with a default max depth of 3.|
Copy file name to clipboardExpand all lines: content/docs/references/api/protocol.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -395,7 +395,7 @@ const result = AiChatRequest.parse(data);
395
395
|**object**|`string`| ✅ | The object name. |
396
396
|**id**|`string`| ✅ | The unique record identifier (primary key). |
397
397
|**select**|`string[]`| optional | Fields to include in the response (allowlisted query param). |
398
-
|**expand**|`string[]`| optional |Relations to eager-load (allowlisted query param). |
398
+
|**expand**|`string[]`| optional |Lookup/master_detail field names to expand. The engine resolves these via batch $in queries, replacing foreign key IDs with full objects. |
399
399
400
400
401
401
---
@@ -782,7 +782,7 @@ const result = AiChatRequest.parse(data);
782
782
|**orderBy**|`string`| optional | Alias for sort (OData compatibility). |
783
783
|**top**|`number`| optional | Max records to return (limit). |
784
784
|**skip**|`number`| optional | Records to skip (offset). |
785
-
|**expand**|`string`| optional | Comma-separated list of relations to eager-load. |
785
+
|**expand**|`string`| optional | Comma-separated list of lookup/master_detail field names to expand. Resolved to populate array and passed to the engine for batch $in expansion. |
|**reference**|`string`| optional | Target object name (snake_case) for lookup/master_detail fields. Required for relationship types. Used by $expand to resolve foreign key IDs into full objects.|
|**expand**|`Record<string, [#](./#)>`| optional | Recursive relation loading map. Keys are lookup/master_detail field names; values are nested QueryAST objects that control select, filter, sort, and further expansion on the related object. The engine resolves expand via batch $in queries (driver-agnostic) with a default max depth of 3.|
0 commit comments