Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cursor): allow
$meta
based sort when passing an array to sort()
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.
- Loading branch information