Skip to content
Snippets Groups Projects
Verified Commit b8bcfc36 authored by Dennis Collaris's avatar Dennis Collaris
Browse files

fix: parse integers into numbers instead of objects

parent 5cbb2ad7
No related branches found
No related tags found
1 merge request!12fix: parse integers into numbers instead of objects
Pipeline #141506 passed
......@@ -80,6 +80,10 @@ function parseNode(node: Node): NodeQueryResult {
_id: node.identity.toString(),
label: node.labels[0], // TODO: only using first label
attributes: Object.fromEntries(Object.entries(node.properties)?.map(([k, v]) => {
if (Integer.isInteger(v)) {
return [k, v.toNumber()];
}
if (v instanceof Object) {
// TODO: for now, we don't support nested objects
return [k, JSON.stringify(v)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment