parse-php-sdk icon indicating copy to clipboard operation
parse-php-sdk copied to clipboard

Aggregate pipeline > Multiple lookup stages

Open michaelpeterlee opened this issue 5 years ago • 0 comments

Issue Description

Q. Does the SDK support lookup/left-join 2x related classes?

The SDK implementation refers PHP implicit object notation;
We cannot redeclare 'lookup'.

I tried to pass a 2D object, to no-avail.

Steps to reproduce

$pipeline =
   [
         'lookup' =>
            [
                  [
                     'from' =>"_User",
                     'localField'=> "userObjectId",
                     'foreignField' => "_id",
                     'as' => "user"
                  ],
                  [
                     'from' =>"Article",
                     'localField'=> "articleObjectId",
                     'foreignField' => "_id",
                     'as' => "article"
                  ],
           ],
   ];

Environment Details

Your PHP Version: [ 7.2.24] Your Parse PHP SDK Version: [1.6] ParseServer: V3.2.3, NodeJS 10.15.1, MongoDb 3.4

michaelpeterlee avatar Apr 22 '20 21:04 michaelpeterlee