Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Get 504 while using MongoQuery #93

Open
veed76 opened this issue May 16, 2020 · 0 comments
Open

Get 504 while using MongoQuery #93

veed76 opened this issue May 16, 2020 · 0 comments

Comments

@veed76
Copy link

veed76 commented May 16, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant