public function lastInsertedId()
    {
        $query = "MATCH (n) RETURN MAX(id(n)) AS lastIdCreated";

        $statement = $this->getCypherQuery($query, []);
        $result = $statement->getResultSet();

        return $result[0][0];
    }
public function lastInsertedId()
    {
        $query = "MATCH (n) RETURN MAX(id(n)) AS lastIdCreated";

        $statement = $this->getCypherQuery($query, []);
        $result = $statement->getResultSet();

        return $result[0][0];
    }
public function lastInsertedId ( ) { $ query = "MATCH (n) RETURN MAX(id(n)) AS lastIdCreated" ; $ statement = $ this -> getCypherQuery ( $ query , [ ] ) ; $ result = $ statement -> getResultSet ( ) ; return $ result [ 0 ] [ 0 ] ; }
Get the last Id created by Neo4J

@return int
Get the last Id created by Neo4J