Skip to content

Firebase Modify: Dynamic Childpath not set properly #2

@aaronfranco

Description

@aaronfranco

According to the Node's information, in order to use the "msg.childpath" property, the "childpath" field in the Node's configuration must be left blank. Unfortunately, this is incorrect. In order to use the "msg.childpath" property to set the childpath dynamically, the "childpath" field in the Node's configuration must be set to "msg.childpath." Otherwise, the childpath will be automatically set to the root of the database.

See line 167 in firebase_modify.js

//Parse out msg.childpath
          var childpath = this.childpath
          if(childpath == "msg.childpath"){  // <--- Here is the issue
            if("childpath" in msg){
              childpath = msg.childpath
            }
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions