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

Error at Reference Cards

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Extra Small
    • true

    Description

      There is an error in the last example of the Reference Cards section 'Mapping SQL to MongoDB'

      db.users.aggregate( [
      {$project: {“how_old”:“$age”}}
      ])

      I think It should be:

      db.users.aggregate( [
      {$project: {“how_old”:“$age”, _id : 0 }}
      ])

      Regards,
      Juan

      Attachments

        Activity

          People

            eric.holzhauer@mongodb.com Eric Holzhauer
            juanroy Juan Antonio Roy Couto
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 50 weeks, 1 day ago