This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 1,000,000+ packages pre-installed, including neo4j-parser
with all npm
packages installed. Try it out:
var parser = require("neo4j-parser");
// Example
// Parse the results of 2 queries, the first one should be parsed raw (unparsed)
var response = {
"results": [
{
"columns": [
"value"
],
"data": [
{
"row": [
"hello"
],
}
],
},{
"columns": [
"value2"
],
"data": [
{
"row": [
"hello2"
],
}
],
}
],
"errors": []
};
parser({
body: JSON.stringify(response),
cb: function(err, index, resultObj)
{
console.log(JSON.stringify(arguments));
},
raw: false,
isRaw: function(index)
{
if(index === 0) return true;
else return false;
}
});
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.