kriasoft/react-firebase-starter

Add sendMessage() mutation

Open

#371 geöffnet am 12. Sept. 2019

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (4.475 Stars) (773 Forks)batch import
enhancementgood first issuehelp wanted

Beschreibung

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