Skip to main content

sendMessageToDirectChat

talawa-apiDocs


talawa-api / resolvers/Mutation/sendMessageToDirectChat / sendMessageToDirectChat

Variable: sendMessageToDirectChat

> const sendMessageToDirectChat: MutationResolvers["sendMessageToDirectChat"]

This function enables to send message to direct 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

Defined in

src/resolvers/Mutation/sendMessageToDirectChat.ts:15