Skip to main content

sendMessageToChat

talawa-apiDocs


talawa-api / resolvers/Mutation/sendMessageToChat / sendMessageToChat

Variable: sendMessageToChat

> const sendMessageToChat: MutationResolvers["sendMessageToChat"]

This function enables to send message to chat.

Param

parent of current request

Param

payload provided with the request

Param

context of entire application

Remarks

The following checks are done:

  1. If the direct chat exists.
  2. If the user exists

Returns

Chat message.

Defined in

src/resolvers/Mutation/sendMessageToChat.ts:15