Help with listing mongoDB collections

Hi .. I managed to get a list of Collections by setting the Mode to database operation
but the Operation i left blank and I set it in the Function node as command instead of getCollectionInfos

msg.operation = "command"
msg.payload = {
      listCollections: 1.0
}
   
return msg;
1 Like