Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-182

executeDbCommand regression

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.2
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu

      In previous versions, the following worked correctly:
      MongoClient.connect('<url>', function(err, db) {db.executeDbCommand({aggregate: '<collectionName>', pipeline:[{$match: {_id:1}}]}, function(err,res)

      {console.log(res)}

      )});

      However, in the current version an error is thrown:
      "error": "Error: key $match must not start with '$'".

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            emoshe Elad Moshe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: