【发布时间】:2015-02-18 14:10:30
【问题描述】:
我正在尝试使用 Neo4j 事务查询发送 POST 请求。虽然我得到一个响应 200 节点没有创建。这是我的 Python 脚本:
import requests
import json
import csv
headers = {'content-type': 'application/json'}
url = "http://localhost:7474/db/data/transaction/commit"
checkNode = {"query" : '{"statements": [{"statement":"CREATE (n:test) RETURN n"}]}'}
mkr =requests.post(url, data=json.dumps(checkNode), headers=headers)
print(mkr)
我以前没有使用过事务,也没有尝试通过 Rest Api 创建一个。我在这里做错了什么?
【问题讨论】:
标签: python transactions neo4j