Monday, June 7, 2021

Firebase how to get the path of snapshot

snapshot.ref.toString().substring(snapshot.ref.root.toString().length - 1)

this code will help with that  


references:

https://stackoverflow.com/questions/58045946/how-can-i-retrieve-the-full-path-to-a-child-node-using-orderbychild-equalto

No comments:

Post a Comment