getRecords method

Future<ResultList<RecordModel>> getRecords(
  1. String collectionName
)

Implementation

Future<ResultList<RecordModel>> getRecords(String collectionName)async{
  ResultList<RecordModel>? result;
  result= await client.collection(collectionName).getList();
  return result;
}