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

Doc that $where must be top-level

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.7
    • Component/s: manual
    • Labels:
      None
    • # Replies:
      2
    • Last comment by Customer:
      true
    • Actual Time:
      4

      Description

      2.6 strictly enforces that a $where query operator must be a field of the top-level document. It cannot be inside a nested document (for instance, below an $elemMatch). Can we add this as a note here: http://docs.mongodb.org/manual/reference/operator/query/where/?

      2.4 erroneously allowed $where inside an $elemMatch value, so it might be worth tagging this as "changed in 2.6".

      See relevant core server tickets for details: SERVER-13503, SERVER-12439, and SERVER-14010.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  5 years, 32 weeks, 2 days ago
                  Date of 1st Reply: