event
talawa-api • Docs
talawa-api / resolvers/ActionItem/event / event
Variable: event
> const
event: ActionItemResolvers
["event"
]
Resolver function for the event
field of an ActionItem
.
This function retrieves the event associated with a specific action item.
Param
The parent object representing the action item. It contains information about the action item, including the ID of the associated event.
Examples
Here's how you might use this resolver in your GraphQL schema:
type ActionItem \{
event: Event
# other fields...
\}
If the action item with an ID of `123` is associated with an event with an ID of `789`, this resolver will find the event with the ID `789` in the database and return its information.
See
- Event - The Event model used to interact with the events collection in the database.
- ActionItemResolvers - The type definition for the resolvers of the ActionItem fields.