From 43a7061ffeece0c6151f35b55ba1c9bcff90b7bc Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 8 Feb 2024 10:40:40 +0530 Subject: [PATCH] Handle record attributes with null values --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;