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

Redaction release notes for 2.5.2 has syntax errors

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • Affects Version/s: mongodb-2.6
    • Component/s: manual
    • Labels:
      None

      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" ]
      }
      }
      ] )

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

              Created:
              Updated:
              Resolved:
              10 years, 34 weeks, 6 days ago