kriasoft/react-firebase-starter

Add sendMessage() mutation

Open

#371 建立於 2019年9月12日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (4,475 star) (773 fork)batch import
enhancementgood first issuehelp wanted

描述

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.

貢獻者指南