String statusOff= "off";
Map<String, Object> status = new HashMap<>();
status.put("status", statusOff);
db.collection("Users").document("terapis")
.update(status)
.addOnSuccessListener(new OnSuccessListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
}
The code is working but i have a problem, as you can see, i manually input the document id
I dont know any function like whereEqualTo
for update.
Is there any way to do this?