Burhan
Burhan

Reputation: 83

Neo4j: Get all nodes in a graph, using RESTful call

I am looking for an equivalent restful service call for a cypher query.

start n=node:node_audo_index("term:*") return n;

Any thoughts on it?

Upvotes: 2

Views: 2245

Answers (1)

Stefan Armbruster
Stefan Armbruster

Reputation: 39915

A GET request to http://localhost:7474/db/data/index/auto/node/?query=term:* should do it. See https://neo4j.com/docs/rest-docs/current/#rest-api-find-node-by-query.

But the question is why do you want to use REST api in favour of Cypher? I can not see a good reason for this.

Upvotes: 3

Related Questions