I am able to upsert for edge class with following syntax:

UPDATE LINK LikeComment SET out = #21:21, in = #20:20 UPSERT WHERE out = 
#21:21 and in = #20:20

But When I select source vertex like SELECT FROM #21:21 *it does not show 
me that out edge in result. *

On Monday, 7 November 2016 14:59:33 UTC+5:30, Suyog Kale wrote:
>
> Hi Michela,
> I got following error:
> error com.orientechnologies.orient.core.sql.OCommandSQLParsingException: 
> Error parsing query:\n
>
>
> *UPDATE LINKI am using graph DB, I am not sure if we can use Update EDGE 
> with Upsert.  OR update Link is right syntax.*
> On Monday, 7 November 2016 13:08:14 UTC+5:30, [email protected] wrote:
>>
>> Hi,
>>
>> try this:
>>
>> update link SET out = #22:0, in = #21:0 UPSERT WHERE out = #22:0 and in 
>> = #21:0
>>
>> 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