A minimal example which create a node with an attribute with the value 0 and retrieves it using redisgraph.js
const RedisGraph = require("redisgraph.js").Graph;
let graph = new RedisGraph("G");
(async () =>{
await graph.query("CREATE (:L {v:0})");
let res = await graph.query("MATCH (a) RETURN a, a.v");
while (res.hasNext()) {
let record = res.next();
console.log(record.get("a"));
console.log(record.get("a.v"));
}
graph.deleteGraph();
graph.close();
})();
Output:
Node { id: 1, label: undefined, properties: { v: 0 } }
0
@albertoSpinella would you mind sharing a reproducible snippet?