oops, @RID is returned correctly by default only when you select all fields 
e.g. "select from...", "select * from...", "select *,someField from...".  
Otherwise, you need to select the @rid in the query.  It would be nice if 
@rid was returned correctly on shallow results and maybe  mark the record 
in the result as shallow.  Otherwise, we have a lot of unecessary @rid 
fields in the queries (that's what I do).

On Monday, August 25, 2014 2:06:03 PM UTC-4, odbuser wrote:
>
> The following works as well:
>
> select @rid, in('EdgeType').size() as edge_count from VertexType order by 
> edge_count desc limit by 20
>
> Note that the edge collection size is retrieved using the function, not 
> the literal field name.
> Also, you have to select "@rid" explicitly because the @RID field that 
> comes back is a fake rid.  You then need to retrieve the field "rid" from 
> your results (or give it an alias and use that) instead of @rid.
>
> I don't know why it's a fake rid though since this query results in actual 
> records, not composite or "fake" ones.
>

-- 

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