Skip to content

updateNode should update not replace node's all properties #51

@rajaraodv

Description

@rajaraodv

I need to update a node's existing properties. I have node's id but, currently updateNode function replaces all properties of the node with the given properties. But I think it should really update/add properties.
describe('-> Replace an existing Node with a simple object, check if alias works', function () {
it('should return true', function (done) {
db.updateNode(node_id, {
name: 'foobar2'
}, function (err, result) {
isTrue(err, result);
done();
});
});
});

At least there should be "updateNodeProperties" function that takes "node_id" and properties and simply appends/replaces existing props to the existing node.

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