Skip to main content

organization

talawa-api


talawa-api / resolvers/AgendaCategory/organization / organization

Variable: organization

> const organization: AgendaCategoryResolvers["organization"]

Resolver function for the organization field of an AgendaCategory.

This function fetches the organization associated with a given agenda category. It uses the organizationId field from the parent AgendaCategory object to find the corresponding organization in the database. The organization details are then returned in a plain JavaScript object format.

Param

The parent AgendaCategory object. This contains the organizationId field, which is used to find the organization.

Returns

A promise that resolves to the organization object found in the database, or null if no organization is found.

Defined in

src/resolvers/AgendaCategory/organization.ts:16