code: public function replace($id, $document = null)
      {
          return Parser::replace($id, $document, $this->connection);
      }
docs: Replace document by it's "_id".
  
  @param  string  $id
  @param  mixed  $document
  @return \Clusterpoint\Response\Single