Hi Chinmay,
the result contains OrientDB Java ODocument instances, so you can do:
record.field("name");
Lvc@
On 27 August 2014 21:02, Chinmay Shrikhande <[email protected]>
wrote:
> Hello,
>
> I am using orientdb version 1.7.8. I am trying to access the resultant
> records of a query for further processing. Following is the sample
> ofunction that i have written in 'Javascript' language:
>
> var gdb = orient.getGraph();
> var roles = gdb.command("sql","select from ouser");
> roles.forEach(function(record) {
> // Code to access each record.....????
> // Something like record.name - which will give me the value for name
> attribute of the current record
> });
> return roles;
>
> Please suggest, as to how can i access each record and its attributes.
>
> Thanks,
> Chinmay Shrikhande
>
> --
>
> ---
> 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.
>
--
---
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.