Hi Liz,
I tried to change the variabile sql as follows
var sql = "TRAVERSE " + direction + "('" + edge_type + "') FROM (SELECT
FROM V WHERE key = '" + value + "' )
.replace('key'," + key + ").replace('value','" + value + "'
).replace('edge_type','" + edge_type + "' ).replace('direction','" +
direction + "' )";
so that by entering in the function the parameters edge_type="myEdge"
key="myKey" value="myValue" and direction="out"
the variable sql will be
TRAVERSE out('myEdge') FROM (SELECT FROM V WHERE key = 'myValue'
).replace('key',myKey).replace('value','myValue'
).replace('edge_type','myEdge' ).replace('direction','out' )
Can I ask what is the purpose of your query ?
Regards,
Alessandro
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.