Skip to main content

creator

talawa-apiDocs


talawa-api / resolvers/EventVolunteer/creator / creator

Variable: creator

> const creator: EventVolunteerResolvers["creator"]

Resolver function for the creator field of an EventVolunteer.

This function retrieves the user who created a specific event volunteer.

Param

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

Returns

A promise that resolves to the user document found in the database. This document represents the user who created the event volunteer.

See

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

Defined in

src/resolvers/EventVolunteer/creator.ts:16