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());
    }