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

$group docs improvements

    XMLWordPrintableJSON

Details

    Description

      Description

      Improve the $group operator page:

      Scope of changes

      (some combination/permutations):

      • Add multi-stage examples. Check some existing examples in docs for use of group. Where appropriate, show the results of each individual stage. Utilize common datasets for multiple examples where we can.
      • Order examples such that common use cases appear first. (Counting documents is the most common use case for $group)
      • For each example, make sure we provide a command to insert the sample documents so users can follow along. Each example should follow the form: Sample Documents, Aggregation, Results.
      • If possible, include $cond.
      • Add some SQL comparison examples. Show group by having.
      • Double check the language to vet out the unclear/ambiguous/etc.

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            jeffrey.allen@mongodb.com Jeffrey Allen
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 19 weeks, 5 days ago