parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
811 stars 346 forks source link

Aggregate pipeline > Multiple lookup stages #462

Closed michaelpeterlee closed 1 year ago

michaelpeterlee commented 4 years ago

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

smamun56 commented 1 year ago

any whay to solve this issue ?

dplewis commented 1 year ago

This issue has been fixed in Parse Server 6. Please create a new issue if this persists.