adds sort to local find operation
This commit is contained in:
@@ -12,12 +12,14 @@ export default async function find(options: FindOptions) {
|
||||
user,
|
||||
overrideAccess = true,
|
||||
showHiddenFields,
|
||||
sort,
|
||||
} = options;
|
||||
|
||||
const collection = this.collections[collectionSlug];
|
||||
|
||||
return this.operations.collections.find({
|
||||
depth,
|
||||
sort,
|
||||
page,
|
||||
limit,
|
||||
where,
|
||||
|
||||
@@ -25,6 +25,7 @@ export type FindOptions = {
|
||||
where?: { [key: string]: unknown };
|
||||
depth?: number;
|
||||
limit?: number;
|
||||
sort?: string;
|
||||
};
|
||||
|
||||
export type FindResponse = {
|
||||
|
||||
Reference in New Issue
Block a user