doctrine / couchdb-client

CouchDB Client library
MIT License
122 stars 68 forks source link

Get 504 while using MongoQuery #93

Open veed76 opened 4 years ago

veed76 commented 4 years ago

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.