public function query($queryString, $arguments = null)
{
try {
$result = $this->gremlin->query($queryString, $arguments);
} catch (GremlinException $e) {
display($e->getMessage() . $queryString);
$result = new \StdClass();
$result->processed = 0;
$result->total = 0;
return array($result);
}
if (!isset($result->results)) {
return array();
}
return $result->results;
}