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

Get 504 while using MongoQuery

Open veed76 opened this issue 4 years ago • 0 comments

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.

veed76 avatar May 16 '20 17:05 veed76