brikteknologier / seraph

A thin and familiar layer between node and neo4j's REST api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No error specified in COMMIT callback when batching

sometimesalready opened this issue · comments

I do not specify callbacks to all queries in transaction cause it is possible to get aggregated result in commit callback. But as follow from code snippet it is not true for errors. Should errors be aggregated as well as results in commit callback?

db.batch(function(txn) {
    txn.query('MATCH n RETUUURN n', error => console.log(error)); // {code, message}
}, error => console.log(error)); // null