This code gives me... array? with columns and data, as i understand
console.log
{ columns: [ 'n.name' ],
data: [ [ '(' ], [ 'node_name' ], [ ';' ], [ 'CREATE' ], [ ')' ] ] }
Code
function show() {
var cypher = [
'MATCH (n)-[r:CREATE_NODE_COMMAND]->(s)RETURN n.name'
].join('\n');
db.queryRaw(cypher, {}, function(err, result) {
if (err) throw err;
for (var key in result) {
}
console.log(result);
})}
How to get clean data: keys like this (n.name;CREATE) ?
result.data.join('') by jonpacker https://github.com/brikteknologier/seraph/issues/166