diff --git a/src/util.ts b/src/util.ts index 222742d..f55d62d 100644 --- a/src/util.ts +++ b/src/util.ts @@ -79,7 +79,7 @@ export class Util { const res: {[key: string]: any} = {}; attributes.forEach(attr => { - res[attr.key] = this.fromGQLValue(attr.value); + res[attr.key] = (attr.value === null) ? null : this.fromGQLValue(attr.value); }); return res;