此JSON格式成功加载关系:
{"method":"POST","to":"/node/25612/relationships","id":25612,"body":{"to":"25614","type":"father"}}
为关系添加“权重”属性的格式是什么?
答案 0 :(得分:2)
使用REST API的batch
操作时,body.data
对象指定关系属性,如:
{
"method":"POST",
"to":"/node/25612/relationships",
"id":25612,
"body":{
"to":"25614",
"type":"father",
"data": {
"weight": 175
}
}
}