feat(mongodb): delete rows from the query result grid

This commit is contained in:
onenewcode authored and GitHub committed 2026-09-22 11:03:43 +08:00
1 parent d1bd67b828
commit 9fa61d53b6
5 files changed
+183 -35

No files matched your search

+4
View File
@@ -68,6 +68,10 @@ db.orders.aggregate([
字段结构差异很大的 Collection 更适合使用完整文档视图,避免隐藏字段在表格列中被忽略。
### 查询结果编辑
当查询标签中只有一条不带投影的 `find` 或 `findOne`、且结果包含 `_id` 时,结果表格可以直接编辑:可以修改字段、选中并删除行,保存前查看将要执行的 `updateOne` 和 `deleteOne` 语句,删除后表格会自动重新加载。结果表格不支持新增行,请使用 `insertOne` 或文档浏览器。聚合、带投影的查询以及多条命令的脚本保持只读,因为它们的行无法对应到单个文档。
## JSON 文档编辑
文档详情可以在字段树和完整 JSON 源码之间切换:
+4
View File
@@ -68,6 +68,10 @@ The grid expands common fields into columns and supports:
Collections with very different document shapes are better handled in the full-document view so hidden fields are not overlooked.
### Query Result Editing
A query tab result grid is editable when a single `find` or `findOne` runs without a projection and returns `_id`. There you can edit fields and delete rows, review the pending `updateOne` and `deleteOne` statements before saving, and the grid reloads after a deletion. Inserting rows is not available; use `insertOne` or the document browser instead. Aggregations, projected queries, and multi-command scripts stay read-only because their rows cannot be mapped back to single documents.
## JSON Document Editing
Document details can switch between a field tree and full JSON source: