Closed bencagri closed 8 years ago
Hello, You can use aggregate function of library to perform join query for example. $ops = array( array('$lookup'=> array('from'=>'right', 'localField'=> 'ref', 'foreignField'=>"_id", 'as'=> "stuffFromRight")) ); $this->mongo_db->aggregate('left', $ops);
Hello, I am trying to perform an aggragate with $opp $lookup to 'join' two collections and I have with return the error: "The 'cursor' option is required, except for aggregate with the explain argument"
Can you help me solve it? @intekhabrizvi @bencagri
Hello, I am trying to perform an aggragate with $opp $lookup to 'join' two collections and I have with return the error: "The 'cursor' option is required, except for aggregate with the explain argument"
Can you help me solve it? @intekhabrizvi @bencagri
Hi there, this is an awesome library. But I think it would be much more awesome with mongos join methods. https://www.mongodb.com/blog/post/joins-and-other-aggregation-enhancements-coming-in-mongodb-3-2-part-1-of-3-introduction
Sample schema.