kriasoft/react-firebase-starter

Add sendMessage() mutation

开放

#371 创建于 2019年9月12日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (773 个派生)batch import
enhancementgood first issuehelp wanted

仓库指标

星标
 (4,475 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南