kriasoft/react-firebase-starter

Add sendMessage() mutation

Open

#371 opened on Sep 12, 2019

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

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