couchdb-client icon indicating copy to clipboard operation
couchdb-client copied to clipboard

Example in Readme

Open misilot opened this issue 6 years ago • 1 comments


$selector = ['_id'=>['$gt'=>null]];
$options = ['limit'=>1,'skip'=>1,'use_index'=>['_design/doc','index'],'sort'=>[['_id'=>'desc']]];
$query = new \Doctrine\CouchDB\Mango\MangoQuery($selector,$options);
$docs = $client->find($query);

The find function does not appear to be implemented, or is it called something else?

Thanks!

misilot avatar Mar 06 '19 17:03 misilot

You probably saw this, but the client reference in the README is incorrect.

$client = \Doctrine\CouchDB\MangoClient::create(array('dbname' => 'test'));

odmarkj avatar Jun 29 '19 22:06 odmarkj