I am using golang and firego for connecting to Firebase. I want to update my data Status
from ON to OFF with key IDAgent: 7
. This is my Database Structure
Assumption : I don't know child active_chat. How can i update data in active_chat/-Koja8GuFplEN3kjbfPO where IDAgent = 7
I have tried this code
x := map[string]string{"Status": "OFF"}
ref.OrderBy("IDAgent").EqualTo("7").Update(x)
but this code wrong query.