You have to iterate through the pipe at the end of your script on order to return the results.
For storing stuff , either just load a file from disk and do eval within your script, or write a plugin that does it?
/peter
Send from mobile.
Hi,
I am trying to execute a Gremlin Script pointing to Neo4j server using Groovy.
I got the status Code, but I couldn't get the response of the executed query.
def http = new groovyx.net.http.HTTPBuilder()
http.post( uri: 'http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script',
body: 'script=' + 'g.v(1).out',
requestContentType: URLENC)
{ resp -> println "Success! ${resp.status}" }
I got the response code as "200" but I couldn't get the result of the executed Query.
Is there any possible way to store the Gremlin Script in Neo4j server and to invoke it using Groovy(Similar to invoke of a stored Procedure from Java end).
Thanks
Vijay