src/Query/Builder.php
public function replace($id, $document = null)
    {
        return Parser::replace($id, $document, $this->connection);
    }
public function replace($id, $document = null)
    {
        return Parser::replace($id, $document, $this->connection);
    }
public function replace ( $ id , $ document = null ) { return Parser :: replace ( $ id , $ document , $ this -> connection ) ; }
Replace document by it's "_id".

@param  string  $id
@param  mixed  $document
@return \Clusterpoint\Response\Single
Replace document by it s _id .