tableDdl.ts: serve collection validator + indexes for MongoDB
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- Avg merge
- 3h 8m
- Merged PRs (30d)
- 6
Description
Part of the MongoDB Support project (https://github.com/orgs/appspace/projects/2).
## Task
Update `server/src/routes/tableDdl.ts` to call `getCollectionInfo()` for MongoDB and return the validator + indexes.
## Acceptance Criteria
- [ ] When the active driver's `queryMode === 'mql'`, route calls `driver.getCollectionInfo()` instead of `driver.getTableDdl()`
- [ ] Response payload exposes both the JSON Schema validator (or `null` if unset) and the indexes array
- [ ] SQL drivers' existing `getTableDdl` path is unchanged
- [ ] Unit tests cover the MongoDB branch
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.