Skip to main content

relatedEvent

talawa-api


talawa-api / resolvers/AgendaSection/relatedEvent / relatedEvent

Variable: relatedEvent

> const relatedEvent: AgendaSectionResolvers["relatedEvent"]

Resolver function for the relatedEvent field of an AgendaSection.

This function retrieves the event related to a specific agenda section.

Param

The parent object representing the agenda section. It contains information about the agenda section, including the ID of the related event.

Returns

A promise that resolves to the event document found in the database. This document represents the event related to the agenda section.

See

  • Event - The Event model used to interact with the events collection in the database.
  • AgendaSectionResolvers - The type definition for the resolvers of the AgendaSection fields.

Defined in

src/resolvers/AgendaSection/relatedEvent.ts:17