You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And post the returned results? Debugging the raw query object populated is a useful trick to see if the sent Gremlin Groovy query is valid or not.
If you're using ES6/2015 JavaScript, I recommend you check gremlin-template-string which will help you generate Gremlin queries.
var query = gremlin()
query(g.V({'@type':'ita:Task',name:'Setup'}))
console.log('script is ', query.script)
console.log('params are ', query.params)
client.execute(query, function..)
running this produces
script is g.V(["@type":"ita:Task","name":"Setup"])
params are {}
query by multiple attributes returned err,result [Error: javax.script.ScriptEx
ption: groovy.lang.MissingMethodException: No signature of method: groovy.lang
issingMethodException.V() is applicable for argument types: (java.util.LinkedH
hMap) values: [[@type:ita:Task, name:Setup]]
Possible solutions: _(groovy.lang.Closure), is(java.lang.Object), any(), use([
ava.lang.Object;), any(groovy.lang.Closure), wait()] undefined
Apologies if I'm misunderstanding the api but to query a Vertex on multiple properties I do
var query = gremlin()
query(g.V({type:'Task',name:'Setup'}))
client.execute( query .. )
or even with just one property
query(g.V({type:'Task'}))
client.execute( query, function(err,response) {
This returns an exception,
execution returned err,result [Error: javax.script.ScriptException: groovy.lang
MissingMethodException: No signature of method: groovy.lang.MissingMethodExcept
on.V() is applicable for argument types: (java.util.LinkedHashMap) values: [[@t
pe:ita:Task]]
Possible solutions: _(groovy.lang.Closure), is(java.lang.Object), any(), use([L
ava.lang.Object;), any(groovy.lang.Closure), wait()] undefined
I'm completely new to this technology stack, any suggestions how to diagnose?
The text was updated successfully, but these errors were encountered: