add pipelineMod

This commit is contained in:
Sebastian Frank 2021-11-11 17:13:29 +01:00
parent dfa5f6a8c8
commit 25106547e9
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57

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 {