At first I started using Gremlin. However, at that time, the REST interface was a bit unstable, so I switched to Cypher. It has much better support for Neo4j. However, there are several types of queries that are simply not possible with Cypher, or where Cypher cannot fully optimize the way Gremlin is used.
Gremlin is built on top of Groovy, so you can use it as a general way to get Neo4j to execute Java code and perform various tasks from the server, without having to use an HTTP hit from the REST interface. Among other things, Gremlin will allow you to change data.
However, when all I want is to request data, I go with Cypher as it is more readable and easier to maintain. Gremlin is reserved when the limit is reached.
Louis-Philippe Huberdeau Dec 11 2018-12-12T00: 00Z
source share