lib/query.js
function resolver(obj) {
  return new Promise(function(resolve, reject) {
    _.isEmpty(obj.results) ? reject(new Error(JSON.stringify(obj.errors))) : resolve(obj.results);
  })
}
function resolver(obj) {
  return new Promise(function(resolve, reject) {
    _.isEmpty(obj.results) ? reject(new Error(JSON.stringify(obj.errors))) : resolve(obj.results);
  })
}
function resolver ( obj ) { return new Promise ( function ( resolve , reject ) { _ . isEmpty ( obj . results ) ? reject ( new Error ( JSON . stringify ( obj . errors ) ) ) : resolve ( obj . results ) ; } ) }
Resolver function to chain Promise to resolve results or reject errors. Used in postQuery.
@private
@param  {JSON} obj Returned from the neo4j server.
@return {Promise}     That resolves results or rejects errors.
Resolver function to chain Promise to resolve results or reject errors . Used in postQuery .