79743524

Date: 2025-08-22 14:45:56
Score: 0.5
Natty:
Report link

In my case I needed to make sure equalTo() gets an argument of proper type. Here, it was not String but Long (instead of Long this method expects arg to be a Double, so convert it first).

val id: Long
val query = ref.orderByChild("id").equalTo(id.toDouble())

In other case whole root node was deleted.

As of deleting, as mentioned in other's answers using removeValue().

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jawegiel