We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfee858 commit 252cd75Copy full SHA for 252cd75
src/hooks/transform-query/transform-query.hook.ts
@@ -11,7 +11,10 @@ export const transformQuery = <
11
transformer: TransformerFn<Q, H>,
12
) => {
13
return (context: H, next?: NextFunction) => {
14
- context.params.query = transformer(context.params.query ?? {}, context)
+ context.params.query = transformer(context.params.query ?? {}, {
15
+ context,
16
+ i: 0,
17
+ })
18
19
if (next) {
20
return next().then(() => context)
0 commit comments