Hi Costin,

This method automatically load links, to get the actual id you can use:

((ODocument) item).field("myId", OType.LINK)

Best regards,
Artem Orobets

* Orient Technologiesthe Company behind OrientDB*


2014-05-30 11:00 GMT+03:00 costin popa <[email protected]>:

> It might be an obvious answer to this one, but I have in my select
> something like
>
> select $current.@rid as myId ...
>
> and when I do ((ODocument) item).field("myId") I get another ODocument,
> fetching the referenced document with that id. What I really want is the
> Id. Who do I get it?
>
> --
>
> ---
> 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.

Reply via email to