- In form.controller.js erase dashboard function in line 146 - create a brand new controller named getForm - It will have formId in req.params - use this id and find the form by equating the id with formId string field. - fetch formSubmissions which has the same formId using prisma. - return data fetched as an object containing formData field keeping data of form and a array of formSubmissionData containing formSubmission data. *Note:- Use mongoose.aggregate if you want implement any complex query.*
Note:- Use mongoose.aggregate if you want implement any complex query.