Commit bb454d6
fix: Update QueryAST tests and fix count/projection logic
- Fix count method to handle query objects
- Fix field projection to exclude _id when not requested
- Update tests to use mocks instead of MongoMemoryServer
- All 70 tests passing
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent a2733f0 commit bb454d6
File tree
3 files changed
+177
-76
lines changed- packages/drivers/mongo
- src
- test
3 files changed
+177
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
| |||
344 | 349 | | |
345 | 350 | | |
346 | 351 | | |
347 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
348 | 356 | | |
349 | 357 | | |
350 | 358 | | |
| |||
0 commit comments