Skip to content

Commit

Permalink
fix: Missing options for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
aerotoad committed Jul 27, 2023
1 parent 1a416f8 commit e7f9dd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types/lookup-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ export interface LookupOptions {
localField: string;
foreignField: string;
as: string;
limit?: number;
skip?: number;
sort?: SortOptions;
}

export interface SortOptions {
[key: string]: 'asc' | 'desc';
}

0 comments on commit e7f9dd9

Please sign in to comment.