queryCollection method

Future<List<QueryDocumentSnapshot<Object?>>> queryCollection(
  1. String collectionPath,
  2. String field,
  3. dynamic value
)

Implementation

Future<List<QueryDocumentSnapshot>> queryCollection(String collectionPath, String field, dynamic value) async {
  QuerySnapshot querySnapshot =
      await _db.collection(collectionPath).where(field, isEqualTo: value).get();
  return querySnapshot.docs;
}