Change Password

Input error
Input error
Input error
Submit
v2.x

Modification

Update Node

  • Update by node id:
UpdateNodeRequest request = new UpdateNodeRequest();
request.setId(5);
request.setValue(Value.newBuilder().add("name", "XuSheng").build());
client.updateNode(request);
  • Update by node filter:
UpdateNodeRequest request = new UpdateNodeRequest();
request.setFilter(Filter.newEqBuilder("name").eq("XuSheng").build());
request.setValue(Value.newBuilder().add("age", "30").build());
client.updateNode(request);

Update Edge

Update by edge id:

UpdateEdgeRequest request = new UpdateEdgeRequest();
request.setId(5);
request.setValue(Value.newBuilder().add("rank", 20).build());
client.updateEdge(request);

Update by edge filter:

UpdateEdgeRequest request = new UpdateEdgeRequest();
request.setFilter(Filter.newEqBuilder("rank").eq("20").build());
request.setValue(Value.newBuilder().add("_from_id", "2").build());
client.updateEdge(request);