Skip to content

Commit 4eed1d5

Browse files
committed
fix(handler): Allow empty query string parameter (necessary for persisted operations)
1 parent f8b1630 commit 4eed1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export function createHandler<RawRequest = unknown, Context = unknown>(
334334
];
335335
}
336336

337-
if (!partParams.query) throw new Error('Missing query');
337+
if (partParams.query == null) throw new Error('Missing query');
338338
if (typeof partParams.query !== 'string')
339339
throw new Error('Invalid query');
340340
if (

0 commit comments

Comments
 (0)