Unable to handle 'this' keyword outside of method definition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: AsyncRewriter
    • None
    • Not Needed

      `this` is not allowed inside functions. Prevents the use of functions in $where.

      > db.coll1.find({ $where: function() { return this.x === 1 } })
      MongoshUnimplementedError: Unable to handle 'this' keyword outside of method definition
      

            Assignee:
            Unassigned
            Reporter:
            Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: