Skip to content

Commit 8218f52

Browse files
committed
Ignore null fields
1 parent 0e1830a commit 8218f52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/queryBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ export default class QueryBuilder {
227227
Object.keys(args).forEach((key: string) => {
228228
let value: any = args[key];
229229

230-
// Ignore ids and connections
231-
if (!(value instanceof Array || (key === 'id' && !allowIdFields))) {
230+
// Ignore null fields, ids and connections
231+
if (value && !(value instanceof Array || (key === 'id' && !allowIdFields))) {
232232
let typeOrValue: any = '';
233233

234234
if (signature) {

0 commit comments

Comments
 (0)