title: Multiple filters in MongoDB query
body: <p>I have this document </p>
  
  <pre><code>{
      "_id" : ObjectId("6afda532e9a0e3838537c71a"),
      "VersionId" : 0,
      "NodeId" : [ 
          {
              "NodeId" : 0,
              "Host" : "127.0.0.1",
              "DatabaseName" : "NodeId0",
              "Collection" : [ 
                  {
                      "CollectionId" : 0,
                      "CollectionName" : "Codice0"
                  }, 
                  {
                      "CollectionId" : 1,
                      "CollectionName" : "Codice1"
                  }
              ]
          }, 
          {
              "NodeId" : 1,
              "Host" : "127.0.0.2",
              "DatabaseName" : "NodeId1",
              "Collection" : [ 
                  {
                      "CollectionId" : 1,
                      "CollectionName" : "Codice1"
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>and would like to extract only 1 filed of <code>nodeId</code> and 1 field for <code>CollectionId</code>, is it possible?</p>
  
  <p>The returned document should have this structure:</p>
  
  <pre><code>{
      VersionId: 0,
      NodeId: {
          NodeId: 0,
          Collection: {
            CollectionId: 0,
            CollectionName: Codice0
          }
      }
  }
  </code></pre>
  
  <p>I tried this query, without result:</p>
  
  <pre><code>let queryDatabasePath = collezioneDbPath.aggregate([
      { $match: { "VersionId" : versionId } },
      { $project: {
          NodeId : { $filter: {
              input: '$NodeId',
              as: 'prova',
              cond: {$and: [
                  {$eq: ['$$prova.NodeId' , nodeId ]},
                  {$filter: {
                      input:'$prova',
                      as: 'prova1',
                      cond: {$eq: ['$$prova1.Collection.CollectionId', collectionId]}
                  }}
  
              ]}
  
          } },
          //"NodeId.Collection.CollectionId" : 1,
          _id: 0
      } }
  ], function (err, res) {
      console.log(res);
  });
  </code></pre>