diff --git a/src/lib/src/angular-neo4j.service.ts b/src/lib/src/angular-neo4j.service.ts index 4b5ceee..6bea49f 100644 --- a/src/lib/src/angular-neo4j.service.ts +++ b/src/lib/src/angular-neo4j.service.ts @@ -101,6 +101,10 @@ export class AngularNeo4jService { } private processRecord(record) { + if (!record) { + return null; + } + if (record.constructor.name === 'Integer') { return record.toNumber(); }