How to execute an Apoc procedure or even a simple match /return Cypher query using Neo4j Rest Api. I have been trying Cypher queries on Neo for a week now and want ability to do same things using Rest apis.
1 Answers
1
votes
The REST api has been deprecated and will not be available from the next major version of Neo4j, Neo4j 4 (due soon). The /cypher endpoint is what you'd use if you just wanted to try it
POST http://localhost:7474/db/data/cypher
{
"query" : "MATCH (x {name: {startName}})-[r]-(friend) WHERE friend.name = {name} RETURN TYPE(r)",
"params" : {
"startName" : "I",
"name" : "you"
}
}
Docs (deprecated) available at https://neo4j.com/docs/rest-docs/current