streamTestsByMother method

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

Stream tests for a mother

Implementation

Stream<List<models.Document>> streamTestsByMother(String? motherId) async* {
  final result = await _db.listDocuments(
    databaseId: databaseId,
    collectionId: collectionId,
    queries: [
      Query.equal('motherId', motherId),
      Query.orderAsc('createdOn'),
    ],
  );
  yield result.documents;
}