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

Redaction release notes for 2.5.2 has syntax errors

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • mongodb-2.6
    • manual
    • None

    Description

      http://docs.mongodb.org/manual/release-notes/2.6/#aggregation-pipeline-changes

      Syntax in example has flaws:
      db.test.aggregate(
      { $match: {} },
      { $redact: { $cond: [

      { $lt: [ '$level', 3' ] }

      ,
      "$$CONTINUE",
      "$$PRUNE" ]
      }
      }
      )

      Should be:
      db.files.aggregate( [
      { $match: {} },
      { $redact: { $cond: [

      { $lt: [ '$level', 3 ] }

      ,
      "$$CONTINUE",
      "$$PRUNE" ]
      }
      }
      ] )

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            david.erickson David Erickson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 23 weeks, 5 days ago