Skip to main content

creator

talawa-apiDocs


talawa-api / resolvers/Comment/creator / creator

Variable: creator

> const creator: CommentResolvers["creator"]

Resolver function for the creator field of a Comment.

This function retrieves the user who created a specific comment.

Param

The parent object representing the comment. It contains information about the comment, including the ID of the user who created it.

See

  • User - The User model used to interact with the users collection in the database.
  • CommentResolvers - The type definition for the resolvers of the Comment fields.

Defined in

src/resolvers/Comment/creator.ts:16