testOrderByAndLimitQuery function
Implementation
Future<void> testOrderByAndLimitQuery(FirestoreApp apiProvider) async {
Map evaluatedApi = {
'path': 'sports/soccer/competitions/comp_1/matches',
'query': {
'orderBy': [
'matchTime',
],
'limit': 5,
},
};
var results = await apiProvider.performGetOperation(evaluatedApi);
print(
"Test OrderBy and Limit Query: Found ${results.docs.length} matches, ordered by matchTime.");
}