我刚刚开始使用Neo4j和Cypher。我正在尝试使用Rest API调用从Postman创建一个节点。
当我发送邮递员电话时,我收到状态:201 Created,这很棒。 但是,当我发送MATCH调用以检查节点是否已创建时,我得到一个空响应。
创建REST CALL
响应:
{
"commit": "http://localhost:7474/db/data/transaction/43/commit",
"results": [
{
"columns": [],
"data": [],
"stats": {
"contains_updates": true,
"nodes_created": 1,
"nodes_deleted": 0,
"properties_set": 2,
"relationships_created": 0,
"relationship_deleted": 0,
"labels_added": 1,
"labels_removed": 0,
"indexes_added": 0,
"indexes_removed": 0,
"constraints_added": 0,
"constraints_removed": 0
}
}
],
"transaction": {
"expires": "Mon, 06 Feb 2017 21:03:06 +0000"
},
"errors": []
}
答案 0 :(得分:0)
Aah ..得到了答案。 CREATE的URL是 http://localhost:7474/db/data/transaction/commit 代替 http://localhost:7474/db/data/transaction/
此外,如果你需要在同一个电话中恢复该对象,你可以这样做
map.get("specificString"); // will return corresponding information as int type.