Hi Guys,
I can confirm that the gremlin query works in the Console but not in the REST
API.
Console Working:
gremlin> g.v(0).outE[[label:'HOSTS']].inV{ it['UniqueId'] == 11761
}.drop(0).take(100)._()
==> v[756]
I will log a bug issue on this: https://github.com/neo4j/gremlin-plugin/issues/3
Thank you
From: [email protected]
[mailto:[email protected]] On Behalf Of Romiko Derbynew
Sent: Monday, 7 November 2011 10:48 AM
To: Neo4j user discussions
Cc: Tatham Oddie; [email protected]
Subject: [mystory-developers] Gremlig Plugin - Paramerterised Queries +
Enumeration - Neo4j 1.5M02
Hi Guys,
I have found a new bug in the Neo4j 1.5M02 release, or perhaps a different way
of querying needs to be done.
If I do a HTTP POST with this
127.255.0.0:20001/db/data/ext/GremlinPlugin/graphdb/execute_script
HTTP POST
Content[1] = {Accept=application/xml, text/json, text/x-json, text/javascript,
text/xml, application/json}
Content [2] =
{
"script": "g.v(p0).outE[[label:p1]].inV{ it[p2] == null
}.drop(p3).take(p4)._()",
"params": {
"p0": 0,
"p1": "HOSTS",
"p2": "UniqueId",
"p3": 0,
"p4": 100
}
}
The Response from the above HTTP POST is this:
"javax.script.ScriptException: groovy.lang.MissingMethodException: No signature
of method: com.tinkerpop.pipes.util.FluentPipeline.inV() is applicable for
argument types: (Script10$_run_closure1) values:
[Script10$_run_closure1@303a6f8]\nPossible solutions: inV(),
in([Ljava.lang.String;), inE([Ljava.lang.String;), V(), id(), find()"
This used to work with Neo4j 1.5M01 release. Has the code changed between the
releases on how parameterized queries are now constructed in Gremlin?
Romiko Derbynew
Readify | Senior Consultant
Suite 408 Life.Lab Building | 198 Harbour Esplanade | Docklands | VIC 3008 |
Australia
M: +61 400 090 251 | E: [email protected] | W: www.readify.net |
Blog: romikoderbynew.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user