Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10388

Comment on: "docs-php-library/tutorial/collation.txt"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • None
    • drivers

    Description

      Please add a more described description in aggregation. Check the following example.

      return $this->posts->aggregate(
                  [
                      [
                          '$lookup' => [
                              'from' => 'authors',
                              'localField' => 'author_id',
                              'foreignField' => '_id',
                              'as' => 'author',
                          ],
                      ],
                      ['$limit' => 5],
                      ['$skip' => 0],
                      ['$sort' => ['created_at' => -1]]
       
                  ],
                  [
       
                  ]
      )->toArray();
      

      Attachments

        Issue Links

          Activity

            People

              jmikola@mongodb.com Jeremy Mikola
              cpapidas@gmail.com christos papidas
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 42 weeks, 4 days ago