Skip to main content

group

talawa-apiDocs


talawa-api / resolvers/EventVolunteer/group / group

Variable: group

> const group: EventVolunteerResolvers["group"]

Resolver function for the group field of an EventVolunteer.

This function retrieves the group associated with a specific event volunteer.

Param

The parent object representing the event volunteer. It contains information about the event volunteer, including the ID of the group associated with it.

Returns

A promise that resolves to the group document found in the database. This document represents the group associated with the event volunteer.

See

  • EventVolunteerGroup - The EventVolunteerGroup model used to interact with the event volunteer groups collection in the database.
  • EventVolunteerResolvers - The type definition for the resolvers of the EventVolunteer fields.

Defined in

src/resolvers/EventVolunteer/group.ts:16