eventsByOrganizationConnection
talawa-api / resolvers/Query/eventsByOrganizationConnection / eventsByOrganizationConnection
Variable: eventsByOrganizationConnection
> const
eventsByOrganizationConnection: QueryResolvers
["eventsByOrganizationConnection"
]
Retrieves events for a specific organization based on the provided query parameters.
This function performs the following steps:
- Generates recurring event instances up to a certain date if the organization has any.
- Builds a query filter (
where
) and sorting parameters based on the provided arguments. - Queries the database for events matching the filter, with sorting, pagination, and related data fetching.
Param
This parameter is not used in this resolver function.
Param
The arguments provided by the GraphQL query, including filters (where
), sorting order (orderBy
), pagination options (first
and skip
), and any other query parameters.
Returns
A list of events matching the query parameters, with related data populated.