title: How to update value of a particular child node in firebase realtime database?
body: <p>I'm making a basic android app project, I have this <a href="https://i.stack.imgur.com/deAaC.png" rel="nofollow noreferrer">database structure</a> and want to update a specific child node (lets say room_price) <br/>
  I've tried doing this but looks like I'm missing something which is preventing me from achieving this.</p>
  
  <pre><code>DatabaseReference dbRef=FirebaseDatabase.getInstance().getReference();    
  dbRef.child("Rooms")
       .child(roomNumber)
       .child("room_price")
       .setValue(updatedPrice);
  </code></pre>
  
  <p>roomNumber and updatedPrice are variables having int values.<br><br>
  When I execute this code, instead of updating the value of room_price it deletes the room_price node from the tree structure and I haven't been able to get why it does that. Please correct me if something is wrong with the code, or suggest some other way of doing this.<br/></p>
  
  <p>Please note that it has no issue with database rules. its either the code or the database path that causes this problem.</p>