kriasoft/react-firebase-starter

Add sendMessage() mutation

Aperta

#371 aperta il 12 set 2019

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (773 fork)batch import
enhancementgood first issuehelp wanted

Metriche repository

Star
 (4475 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor