kriasoft/react-firebase-starter

Add sendMessage() mutation

Open

#371 opened on Sep 12, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (773 forks)batch import
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (4,475 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Add a GraphQL mutation that will be used on the Contact Us page and Send Feedback modal dialog. For example:

mutation {
  sendMessage(input: { type: FEEDBACK, message: "Hello world!", email: "user@example.com" })
}

See

  • src/mutations/SendMessage.js
  • src/server/mutations/contact.js

Bonus points for making it work with Firebase reCaptcha.

Contributor guide