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