It should be simple, but I can not find the related topic in the document or 
other tutorials.

I am writing function from OrientDB studio(V2.0.6, OSX) with javascript, and 
can not access the field value from the returning object of a select query, 
like;

var g = orient.getGraph();
var r = g.command('sql','select * from e limit 2');
var r0 = r[0];
return r0.in;  // gives blank output
where however return r0 gives the right output:

[
    {
        "@type": "d",
        "@rid": "#13:0",
        "@version": 3,
        "@class": "eat",
        "out": "#14:1",
        "in": "#12:0", 
        "@fieldTypes": "out=x,in=x"
    }
]
Can any one help to get the vertex rid in the filed 'in', so i can use it later 
in the following part of this function to do some more jobs?

-- 

--- 
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.

Reply via email to