Hi,
I want to combine group by and match, but seems doing something wrong somewhere. Can someone please guide here:
    const pipeline = [
        { 
          match: {trancheId: 2},
          group: { objectId: null, total: { "$sum": { "$toInt" : "$amount"} } } }
      ];