add pipelineMod

This commit is contained in:
2021-11-11 17:13:29 +01:00
parent dfa5f6a8c8
commit 25106547e9

4
index.d.ts vendored
View File

@@ -55,6 +55,10 @@ interface GetHookData {
* sort only valid for "get" hooks
*/
sort?: string[] | string
/**
* pipelineMod is a function to modify the mongodb query pipeline
*/
pipelineMod?: (pipe: {[key: string]: any}[]) => {[key: string]: any}[]
}
interface PostHookData {