In Firebase, ref
and child
are used a lot.
For example - firebase.database().ref('users/<user-id>')
will work exactly same as firebase.database().ref('users').child('<user-id>')
, so what exactly is the difference between them and when should either of them be used?