query.json
{
"statements": [
{
"statement": "match (n:学生) where n.name = '李明' return n",
"parameters": {
"decisionId": "1",
"criterionId": "1"
}
}
]
}
curl.sh
#!/bin/bash
QUERY=query.json
time curl -i -XPOST --user 'neo4j:test' \
-o output.log \
--data "@$QUERY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
http://localhost:7474/db/data/transaction/commit
cat output.log
运行 sh curl.sh 检查执行结果
references: