Skip to content

Commit 925ca06

Browse files
Merge pull request #988 from objectstack-ai/copilot/refactor-query-syntax-docs
docs: unify API query syntax with Spec canonical format
2 parents 733f582 + 4695184 commit 925ca06

File tree

3 files changed

+655
-783
lines changed

3 files changed

+655
-783
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Documentation
11+
- **Unified API query syntax documentation with Spec canonical format** — Rewrote
12+
`content/docs/protocol/objectql/query-syntax.mdx` and
13+
`content/docs/guides/contracts/data-engine.mdx` to align all examples, interface
14+
definitions, and field names with the canonical `QuerySchema`, `FilterConditionSchema`,
15+
and `EngineQueryOptionsSchema` from `@objectstack/spec`. All query examples now use
16+
`where` + MongoDB-style `$op` object syntax (replacing legacy tuple/`filters`/三元组
17+
format), `orderBy` (replacing `sort`), `groupBy` (replacing `group_by`), and
18+
`aggregations` array (replacing `aggregate` object map). `IDataEngine` contract
19+
documentation updated to reflect the real interface (`find`/`findOne`/`insert`/
20+
`update`/`delete`/`count`/`aggregate`). Added legacy compatibility sections clearly
21+
marking tuple/array syntax as UI-builder input only, with migration guidance.
22+
1023
### Changed
1124
- **Studio Vercel deployment — switched from InMemoryDriver to TursoDriver** — The Studio serverless
1225
API entrypoint (`apps/studio/api/index.ts`) now uses `@objectstack/driver-turso` (TursoDriver)

0 commit comments

Comments
 (0)