lib/main.js
function(node_id, node_data, callback) {
  var that = this;
  request
    .put(that.url + '/db/data/node/' + node_id + '/properties')
	.set(this.header)
    .send(that.stringifyValueObjects(that.replaceNullWithString(node_data)))
		.end(function(result) {
      switch(result.statusCode) {
        case 204:
          callback(null, true);
          break;
        case 404:
          callback(null, false);
          break;
        default:
          callback(new Error('HTTP Error ' + result.statusCode + ' when updating a Node.'), null);
      }
    });
}
function(node_id, node_data, callback) {
  var that = this;
  request
    .put(that.url + '/db/data/node/' + node_id + '/properties')
	.set(this.header)
    .send(that.stringifyValueObjects(that.replaceNullWithString(node_data)))
		.end(function(result) {
      switch(result.statusCode) {
        case 204:
          callback(null, true);
          break;
        case 404:
          callback(null, false);
          break;
        default:
          callback(new Error('HTTP Error ' + result.statusCode + ' when updating a Node.'), null);
      }
    });
}
function ( node_id , node_data , callback ) { var that = this ; request . put ( that . url + '/db/data/node/' + node_id + '/properties' ) . set ( this . header ) . send ( that . stringifyValueObjects ( that . replaceNullWithString ( node_data ) ) ) . end ( function ( result ) { switch ( result . statusCode ) { case 204 : callback ( null , true ) ; break ; case 404 : callback ( null , false ) ; break ; default : callback ( new Error ( 'HTTP Error ' + result . statusCode + ' when updating a Node.' ) , null ) ; } } ) ; }
/*	Replace a Node's properties
This will replace all existing properties on the node with the new set of attributes.
/ * Replace a Node s properties This will replace all existing properties on the node with the new set of attributes .