skip to Main Content

I want to be able to filter a field where I can do a batch.update on flutter Firestore

final batch = FirebaseFirestore.instance.batch(); var nycRef = FirebaseFirestore.instance.collection("FoodOrders").doc(); // I want to specify a field here like where() // e.g var nycRef = FirebaseFirestore.instance.collection("FoodOrders").where("MyId",isEqualTo: myId); batch.update(nycRef, {"Paid": true}); batch.commit(); But I get an error saying The argument type 'Query<Map<String, dynamic>>'…

VIEW QUESTION
Back To Top
Search