Skip to content

Commit

Permalink
types: allow any value for $meta because MongoDB now supports values …
Browse files Browse the repository at this point in the history
…other than "textScore" for $meta
  • Loading branch information
vkarpov15 committed Jul 18, 2023
1 parent 7e47266 commit 8378c82
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 @@ -691,7 +691,7 @@ declare module 'mongoose' {
slice(val: number | Array<number>): 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 | { $meta: 'textScore' } } | [string, SortOrder][] | undefined | null): this;
sort(arg?: string | { [key: string]: SortOrder | { $meta: any } } | [string, SortOrder][] | undefined | null): this;

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

0 comments on commit 8378c82

Please sign in to comment.