No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Firebase Database Update creating a new node(duplicate node)when trying to update a specific node value

    CLI
    1
    1
    97
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vijay last edited by

      Hi!!! I have a users object, in that I am trying to update a specific node(status) by using the firebase update(payload) method. But when I try to do that, instead of updating the value in the parent node, it creates a new child node(duplicate node) with the value being updated there.

      let firebaseApp = firebase.initializeApp(firebaseConfig);
      let uniqueID = "OEHCrSnKFrd87JDivvA0sLMnj8u1"
      firebaseApp.database()ref("users/" + uniqueID).update({
          status: false
        })
      

      d1082af8-f4bf-41f5-9f46-1dadaf745277-image.png

      Can someone please let me know what I am missing here?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post