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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: drivers
    • Environment:
    • Last comment by Customer:
      false

      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

              Assignee:
              jmikola Jeremy Mikola
              Reporter:
              cpapidas@gmail.com christos papidas
              Participants:
              Last commenter:
              Christopher Cho Christopher Cho
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                50 weeks, 5 days ago
                Date of 1st Reply: