How to Pass Query Parameters to Gremlin Script?

111 views
Skip to first unread message

Vijay

unread,
Aug 6, 2012, 6:12:39 AM8/6/12
to ne...@googlegroups.com
Hi all,

I am trying to execute a Gremlin Script using Groovy class. I am trying to invoke the Groovy class using Restful Web service. I am passing two Query parameters userid and docid to the Groovy class, I can print the Query parameters which is being passed, but when I pass the same Query parameters to Gremlin Script I am getting "NO SUCH PROPERTY EXCEPTION".

The Query parameters are passed using restful webservice.


The Gremlin Script which I am trying to execute is (the below mentioned Script throws "NO SUCH PROPERTY userid")

g.v(userid).out.in........;
g.v(docid).in......;

When I hard code the userid value as 990 and docid value as 2456 , I am getting the Expected Output.

How to pass Query parameters to Gremlin Script.

Thanks
Vijay




Peter Neubauer

unread,
Aug 14, 2012, 12:47:06 PM8/14/12
to ne...@googlegroups.com
Is this not working?

http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-set-script-variables

Do you have an example request that is causing you problems?

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Wanna learn something new? Come to @graphconnect.
Reply all
Reply to author
Forward
0 new messages