Skip to content
This repository was archived by the owner on Dec 10, 2023. It is now read-only.
This repository was archived by the owner on Dec 10, 2023. It is now read-only.

create individual form controller #140

Description

@GammaMicrowave
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions