In realtime database I have child bus_id
& its nodes are bus_no
, bus_id
, bus_time
and creationDate
as a timestamp. Already I have sorting data using orderBychild(timestamp)
. I have also implement create/add bus_id
if bus_id
not exists using rule !data.exists && newData.exists()
.
Now I want To implement that, update child bus_id
if it's created 10 minutes before or update child
bus_id if it having timestamp 10 minutes before.
And i will updating data by ref.child(bus_id).setValue(busInfo);
So is there query for invalidating above problem by using ternary operator?