couchdb-client
couchdb-client copied to clipboard
Get 504 while using MongoQuery
Hi @jwage I have executed below code and it throwing 504
Connection to database
$couchClient = CouchDBClient::create([
'dbname' => env('DB_DATABASE'),
'user' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'host' => env('DB_HOST'),
'port' => env('DB_PORT'),
'timeout' => 10,
'ssl' => false,
]);
$query = new \Doctrine\CouchDB\Mango\MangoQuery();
$query->select(['_id', 'email', 'password'])->where(['$and'=> [
[
'email'=> [
'$eq'=> $request->email,
],
],
]]);
$docs = $couchClient->find($query);
Can you please tell me whereI'm wrong?
Thank You.