Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added submitFormResponse mutation #29

Merged
merged 5 commits into from
Oct 8, 2023
Merged

Conversation

piyushgarg-dev
Copy link
Owner

Reference #17

What does this PR do?

Fixes #1

  1. Added submitFormResponse Mutation. This allows to submit responses of a form created by a user.
  2. Added getFormResponsesByFormId Query. This allows to query form responses based on form Id.
  3. Created a database model named: FormResponse

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • You can test this at http://localhost:8000/local/graphql -> mutation -> SubmitFormResponse
  • I have made sure that db model FormResponse keep those fields optional which are optional during creating a Form.
    • Only required fields are:
      form   Form   @relation(fields: [formId], references: [id])
      formId String @map("form_id")
      userName    String   @map("user_name")
      testimonial String   @map("testimonial")
      

All the necessary changes required for the above changes are done at their respective places.
No unnecessary change has been done.

@github-actions github-actions bot added the hacktoberfest Hacktoberfest Accepted Issues label Oct 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

Thank you for following the naming conventions! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest Accepted Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Mutation for Form Submission
1 participant