Handle record attributes with null values #56

Merged
ashwin merged 2 commits from deep-stack/laconic-sdk:pm-handle-null into main 2024-02-08 05:39:32 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/laconic-sdk",
"version": "0.1.14",
"version": "0.1.15",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "git@github.com:cerc-io/laconic-sdk.git",

View File

@ -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;