Up to now,
I managed to have my function that run the queries being able to return a result immediately.
so the structure of my functions where
var session = driver.session();
return session.run([QUERY]).then(result=> return result.record.map ....)
I...