Well, if I use RETURN @rid, I get the whole record back. Using RETURN 
@class, I get back what you show in your example, which is still a JSON 
object that *contains* the RID. But I was expecting RETURN @rid to return 
just the RID as a simple string. In any case, there is no different between 
RETURN [BEFORE|AFTER] @rid and having no RETURN clause--both return the 
full record that was inserted, so unless I'm totally misinterpreting the 
documentation, this looks like a bug.

On Thursday, June 2, 2016 at 1:20:31 AM UTC-5, [email protected] wrote:
>
> Hi Eric,
>
> try this:
>
> INSERT INTO VMenu CONTENT {"Main":"PM", "Timeout":"PT", "Error":"PE"} 
> return @class
>
> this is the output:
>
>
> <https://lh3.googleusercontent.com/-yV508VVMeLs/V0_QGcki05I/AAAAAAAAADk/DUXU0OMunVwfR0vG7l0_CBm2iilXyZOWACLcB/s1600/Schermata%2Bdel%2B2016-06-02%2B08-17-53.png>
>
>
> Hope it helps.
>
>
> Regards,
>
> Michela
>
>

-- 

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