doctrine / couchdb-client

CouchDB Client library
MIT License
122 stars 68 forks source link

Example in Readme #89

Open misilot opened 5 years ago

misilot commented 5 years ago

$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!

odmarkj commented 5 years ago

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

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