Commit 4695184
docs: unify API query syntax with Spec canonical format
Rewrote query-syntax.mdx and data-engine.mdx to align all examples,
interface definitions, and field names with canonical QuerySchema,
FilterConditionSchema, and EngineQueryOptionsSchema from @objectstack/spec.
- where + MongoDB-style $op object syntax (replaces filters/tuple/三元组)
- orderBy (replaces sort), groupBy (replaces group_by)
- aggregations array (replaces aggregate object map)
- expand as Record<string, QueryAST> (replaces string array)
- IDataEngine contract matches real interface (find/findOne/insert/update/delete/count/aggregate)
- Added legacy compatibility sections with migration guidance
- Updated CHANGELOG.md
Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/fc216716-2629-4ab4-821b-479aa8d48b3f
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>1 parent c8dc320 commit 4695184
3 files changed
Lines changed: 655 additions & 783 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
10 | 23 | | |
11 | 24 | | |
12 | 25 | | |
| |||
0 commit comments