Skip to main content

admins

talawa-api


talawa-api / resolvers/Organization/admins / admins

Variable: admins

> const admins: OrganizationResolvers["admins"]

Resolver function for the admins field of an Organization.

This function retrieves the users who are admins of a specific organization.

Param

The parent object representing the organization. It contains information about the organization, including the IDs of the users who are admins.

Returns

A promise that resolves to an array of user documents found in the database. These documents represent the users who are admins of the organization.

See

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

Defined in

src/resolvers/Organization/admins.ts:16