From 25106547e9c317c5118eb6b82483e32f81c94f73 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 11 Nov 2021 17:13:29 +0100 Subject: [PATCH] add pipelineMod --- index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.d.ts b/index.d.ts index c98cb8f..95a7157 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 {