Commit bd4e6e7
Fix QueryAST compatibility with @objectstack/spec v0.3.3
Update test files to use correct QueryAST property names:
- where (instead of filters)
- orderBy (instead of sort)
- limit (instead of top)
- offset (instead of skip)
Also update filter syntax to MongoDB-style format:
- { age: { $gt: 25 } } instead of { type: 'comparison', ... }
- { $and: [...] } instead of { type: 'and', children: [...] }
Fixed in:
- packages/drivers/excel/test/index.test.ts
- packages/drivers/localstorage/test/index.test.ts
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent c57bbe3 commit bd4e6e7
File tree
2 files changed
+16
-24
lines changed- packages/drivers
- excel/test
- localstorage/test
2 files changed
+16
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 585 | + | |
| 586 | + | |
590 | 587 | | |
591 | | - | |
592 | | - | |
593 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
| |||
606 | 603 | | |
607 | 604 | | |
608 | 605 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
614 | 610 | | |
615 | 611 | | |
616 | 612 | | |
| |||
626 | 622 | | |
627 | 623 | | |
628 | 624 | | |
629 | | - | |
630 | | - | |
631 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
632 | 628 | | |
633 | 629 | | |
634 | 630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 432 | + | |
436 | 433 | | |
437 | 434 | | |
438 | 435 | | |
| |||
453 | 450 | | |
454 | 451 | | |
455 | 452 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
460 | 456 | | |
461 | 457 | | |
462 | 458 | | |
| |||
0 commit comments