fetchRegistrantsByEvent method
Future fetchRegistrantsByEvent (String eventId)
This function is used to fetch all registrants of an event.
params:
eventId
: id of an event.
returns:
Future<dynamic>
: Information about event registrants.
Implementation
Future<dynamic> fetchRegistrantsByEvent(String eventId) async {
await _dbFunctions.refreshAccessToken(userConfig.currentUser.refreshToken!);
final result = await _dbFunctions.gqlAuthQuery(
EventQueries().registrantsByEvent(eventId),
);
return result;
}