0
我想執行這個查詢來打印我本地neo4j數據集的所有記錄(MATCH(n)RETURN(n))。現在我只是在控制檯({「statements」:[{「statement」:「MATCH(n)RETURN(n)」}]}(15:48:43:830)處獲得'body'的字符串值。 public_html/index.html:33)如何將neo4j-queries打印到控制檯? (Javascript)
我該如何做到這一點?
這是我的代碼:
var body = JSON.stringify({
statements: [{
statement: 'MATCH (n) RETURN (n)'
}]
});
$.ajax({
url: "http://localhost:7474/db/data/transaction/commit",
type: "POST",
data: body,
dataType: "json",
contentType: "application/json"
})
.done(function(result){
console.log(body);
})
.fail(function(error){
console.log(error.statusText);
});
</script>