chatById
talawa-api • Docs
talawa-api / resolvers/Query/chatById / chatById
Variable: chatById
> const
chatById: QueryResolvers
["chatById"
]
This query will fetch Chats by a specified id from the database.
Param
Param
An object that contains id
of the user.
Returns
An object Chat
.
If the Chat
object is null then it throws NotFoundError
error.
Remarks
You can learn about GraphQL Resolvers
here.