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

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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: drivers
    • Environment:

      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();
      

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

              Created:
              Updated:
              Resolved:
              3 years, 36 weeks, 6 days ago