cypherquery
v1.1.76
Published
cypherquery streaming rest api
Downloads
29
Keywords
Readme
cypherquery
streaming rest api for neo4j
main.js:
var cypherQuery = require('cypherquery')('user:password@your-neo4j-server:port')
var query = `
match(person:person {name: {name}})
optional match(person)<-[:likes]->(beer:beer {})
optional match(beer)<-[r:award]->(award:award {})
`
var parameters = {
name: 'Peter'
}
cypherQuery(query, parameters).pipe()...
Additional template support
cypherquery({
template: "Your lodash template",
parameters: params,
}).pipe()...
Additional Joi schema validation support
cypherquery({
query: "match(n {id: {id}}) return n",
parameters: params,
validation: {
schema: YourJoiSchema,
payload: payload
}
}).pipe()...
install
With npm do:
npm install cypherquery
license
MIT