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

Document the difference between $<fieldname> and $<operator>

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • manual
    • None

    Description

      We need an explicit explanation of the difference between $<fieldname> and $<operator> in aggregation. Something similar to this from Kristina:

      The "$fieldname" syntax is used to refer to fieldname’s value in the
      aggregation framework. For example, "$age" would be replaced with
      the contents of the age field (and probably be a number, not a string)
      and "$tags.3" would be replaced with the fourth element of the tags
      array. Thus, "$_id" is replaced by the "_id" field of each document
      coming through the pipeline.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            bgrabar Bob Grabar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 29 weeks, 5 days ago