streamTestsByMotherBabyBeat method

Stream<List<Document>> streamTestsByMotherBabyBeat(
  1. String? motherId
)

Stream BabyBeat tests for a mother

Implementation

Stream<List<models.Document>> streamTestsByMotherBabyBeat(
    String? motherId) async* {
  final response = await _db.listDocuments(
    databaseId: databaseId,
    collectionId: 'BabyBeat', // Replace with actual BabyBeat collection ID
    queries: [
      Query.equal('motherId', motherId),
      Query.orderAsc('createdOn'),
    ],
  );
  yield response.documents;
}