Skip to main content

getUserTag

talawa-api


talawa-api / resolvers/Query/getUserTag / getUserTag

Variable: getUserTag

> const getUserTag: QueryResolvers["getUserTag"]

Retrieves a user tag by its ID.

This function fetches a specific user tag from the database using its ID. If the user tag is not found, it throws an error indicating that the item does not exist.

Param

This parameter is not used in this resolver function.

Param

The arguments provided by the GraphQL query, including the ID of the user tag to retrieve.

Returns

The user tag with the specified ID.

Defined in

src/resolvers/Query/getUserTag.ts:18