kriasoft/react-firebase-starter

Add sendMessage() mutation

Open

#371 aberto em 12 de set. de 2019

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (773 forks)batch import
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (4.475 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador