Mongodb – Mongoose aggregate: how to create fields dynamically from the user request
Please someone help me! I can't find the solution in documentation or other topics. I'm using mongodb aggregation in Mongoose/Nest.js project to return the document data with some formatting and filtering. I have the structure of the mongo document like…