Commit f93a8c3
fix(cursor): allow
You may pass an object with a `$meta` key in place of the order parameter to `sort`. The previous code would incorrectly reject this input as illegal. See https://docs.mongodb.com/manual/reference/method/cursor.sort/#sort-metadata for documentation.$meta based sort when passing an array to sort()
1 parent bd80fb2 commit f93a8c3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| |||
0 commit comments