Skip to content

Commit

Permalink
Merge pull request #11893 from coyotte508/patch-4
Browse files Browse the repository at this point in the history
fix(types): Allow sorting by text score
  • Loading branch information
vkarpov15 committed Jun 5, 2022
2 parents 238431e + 38c4f13 commit 4cf2920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/query.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ declare module 'mongoose' {
snapshot(val?: boolean): this;

/** Sets the sort order. If an object is passed, values allowed are `asc`, `desc`, `ascending`, `descending`, `1`, and `-1`. */
sort(arg?: string | { [key: string]: SortOrder } | undefined | null): this;
sort(arg?: string | { [key: string]: SortOrder | { $meta: 'textScore' } } | undefined | null): this;

/** Sets the tailable option (for use with capped collections). */
tailable(bool?: boolean, opts?: {
Expand Down

0 comments on commit 4cf2920

Please sign in to comment.