Hi everyone,
First of all, thanks for the great work on OrientDB! We've been really
amazed with it. The only major roadblock we have found is functions.
We've spent some time trying to implement simple functions in the studio
and the lack of documentation mixed with seemingly changing syntax makes
things quite difficult. i.e.: orient.getGraph() function seems to work on
2.0.3 but not on 2.0.9 or 2.1-rc2.
Here is the code we have so far running on 2.0.3:
"
var mydb = orient.getGraph();
var nearbyNodes = mydb.command('sql',"select in('Contributes_To') from "
+originNode);
return nearbyNodes;
"
I would like to iterate through each of the nodes returned from the query.
Inside of each node I would like to apply a javascript function
"propagation()" to the parameter "activation" from that node and change it
accordingly.
So,
*QUESTION 1* - Is there an updated and reliable documentation source for
JavaScript Functions in OrientDB?
*QUESTION 2* - What is the correct way of doing an SQL command for newer
versions (2.0.9 and 2.1-rc2)? The example above does not seem to work in
new versions.
*QUESTION 3* - What is the correct way of handling the returned objects? As
it was explained here
<http://stackoverflow.com/questions/27657784/how-to-extract-the-result-of-a-query-from-json-inside-a-custom-javascript-functi>
does not seem to work
Thank you very much
Cheers,
Joao
--
---
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.