src/CouchDB/Database.php
public function findDocuments(array $ids, $limit = null, $offset = null)
    {
        $path = "/{$this->name}/_all_docs?include_docs=true";

        if (null !== $limit) {
            $path .= '&limit='.(integer) $limit;
        }
        if (null !== $offset) {
            $path .= '&skip='.(integer) $offset;
        }

        $response = $this->client->request('POST', $path, [
            'body'    => JSONEncoder::encode(['keys' => $ids]),
            'headers' => ['Content-Type'             => 'application/json'],
        ]);

        return JSONEncoder::decode((string) $response->getBody());
    }
public function findDocuments(array $ids, $limit = null, $offset = null)
    {
        $path = "/{$this->name}/_all_docs?include_docs=true";

        if (null !== $limit) {
            $path .= '&limit='.(integer) $limit;
        }
        if (null !== $offset) {
            $path .= '&skip='.(integer) $offset;
        }

        $response = $this->client->request('POST', $path, [
            'body'    => JSONEncoder::encode(['keys' => $ids]),
            'headers' => ['Content-Type'             => 'application/json'],
        ]);

        return JSONEncoder::decode((string) $response->getBody());
    }
public function findDocuments ( array $ ids , $ limit = null , $ offset = null ) { $ path = "/{$this->name}/_all_docs?include_docs=true" ; if ( null !== $ limit ) { $ path .= '&limit=' . ( integer ) $ limit ; } if ( null !== $ offset ) { $ path .= '&skip=' . ( integer ) $ offset ; } $ response = $ this -> client -> request ( 'POST' , $ path , [ 'body' => JSONEncoder :: encode ( [ 'keys' => $ ids ] ) , 'headers' => [ 'Content-Type' => 'application/json' ] , ] ) ; return JSONEncoder :: decode ( ( string ) $ response -> getBody ( ) ) ; }
Find a documents by a id.

@param array    $ids
@param null|int $limit
@param null|int $offset

@return array|null
Find a documents by a id .