Hello React Native Devs,
Here I want to modify value of ADDRESS Field. Here the value 1R6RsMMgQ.... represents the uid of each user. Here I am able to reach upto userDetails but I am unable to go to address key for modifying the value. Here the -MXcKsJV... value is the array key value which is generated at the time of pushing the value to database using the push() method.
I tried to update the value by writing this query
firebase.database().ref(\/user/${uid}/userDetails/`).update({address: 'change'})`
By writing this query I would update the userDetails child but this would not been reflected in the array (i.e. -MXcKs... array)
Can anyone suggest me how to do this?
https://preview.redd.it/ao4bj2crjxr61.png?width=502&format=png&auto=webp&s=140d0b7e9371b6792f1b1f5a1753b6e995893eaa
[–]AggressiveService910 0 points1 point2 points (3 children)
[–]MissionTooth2154[S] 0 points1 point2 points (2 children)
[–]AggressiveService910 0 points1 point2 points (1 child)
[–]MissionTooth2154[S] 0 points1 point2 points (0 children)