Commit Graph

13 Commits

Author SHA1 Message Date
二丫讲梵 d642d01eac
feat(mcp): centralize connection access policies 2026-07-20 22:47:40 +08:00
t8y2 4bcf618162 feat(cli): migrate CLI to native Rust binary 2026-07-18 22:29:29 +08:00
zipg fa5579a3f1
fix(mongodb): support legacy insert syntax 2026-07-18 22:17:45 +08:00
onenewcode bb613b1712
fix(mongodb): support aggregate options and parse errors 2026-07-17 16:57:38 +08:00
Võ Văn Thành (Jay) 640e82cdc6
feat(mongo): improve completion and add distinct support 2026-07-16 18:21:10 +08:00
Võ Văn Thành (Jay) 55f15c8e4b
fix(mongodb): validate options and bound findOne queries 2026-07-15 13:19:53 +08:00
zipg 2a5e7ac1c7
fix(mongodb): preserve long ids in filters and updates 2026-07-14 11:09:11 +08:00
Guoyu Su a99a34b4ab
fix(mongodb): use dedicated count for legacy collections 2026-07-13 13:21:50 +08:00
zipg 9a09bd49cb
fix(mongodb): support array filters in updates 2026-07-12 23:13:36 +08:00
二丫讲梵 264909aaa9
feat(mongo): add document JSON preview 2026-07-11 01:00:47 +08:00
Guoyu Su ca9e11217e
fix(mongodb): support collection drop shell command 2026-07-09 14:16:32 +08:00
Hiep Le 78019c44e2
fix(mongo): support ISODate() and new Date() in MongoDB queries
* fix(mongo): hỗ trợ ISODate() và new Date() trong query MongoDB

Parser shell MongoDB ở frontend chỉ chuyển ObjectId(...) sang extended JSON,
nên filter chứa ISODate("...")/new Date("...") không parse được: câu lệnh rơi
xuống SQL executor và báo lỗi "Use MongoDB-specific commands".

Bổ sung rewrite ISODate(x)/new Date(x) -> {"$date":x} trong normalizeJsonArgument,
khớp với json_value_to_bson của backend (đã hiểu $date/$oid). Thêm test cho
filter dùng ISODate và new Date.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(mongo): decode $date extended JSON trong filter query

json_filter_value_to_bson chỉ chuyển {"$oid":...} nên filter chứa {"$date":...}
bị gửi thẳng lên server: { field: {"$date":...} } lỗi "unknown operator: $date",
còn { field: {"$gte": {"$date":...}} } so sánh với sub-document nên không khớp gì
(trả về rỗng).

Thêm nhánh parse_extended_json_date vào json_filter_value_to_bson, đồng bộ với
json_value_to_bson (vốn đã hiểu $date/$oid). Thêm test cho cả equality và $gte.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 18:21:15 +08:00
t8y2 7e7c4944e9 refactor(desktop): organize lib modules by domain 2026-07-04 13:53:52 +08:00