Skip to content

Commit 72813c7

Browse files
committed
fix filterHelper, it does not return filter arg, if its fields are empty
1 parent 187bf05 commit 72813c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/resolvers/helpers/filter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ export const filterHelperArgs = (
7777
);
7878
}
7979

80+
if (inputComposer.getFieldNames().length === 0) {
81+
return {};
82+
}
83+
8084
return {
8185
filter: {
8286
name: 'filter',

0 commit comments

Comments
 (0)