Try
update PERSON *ADD* favColours=['red'] where perName='Luca'
or
update PERSON *ADD* favColours='red' where perName='Luca'
On Thursday, June 11, 2015 at 7:53:50 AM UTC-7, Athanassios Hatzis wrote:
>
> Hi, I am a newcomer please help with the following
>
> I have created a class PERSON and a collection property favColours
>
> CREATE PROPERTY PERSON.favColours EMBEDDEDLIST STRING
>
> Then I created a record
>
> INSERT INTO PERSON content {perName:'Luca',perAge:34}
>
> Then I have updated successfully that record with the following list of
> colours
>
> update PERSON set favColours=['blue','green'] where perName='Luca'
>
> How do I ADD another color in the list without repeating the previous ?
>
> Thank you
>
> Athanassios I. Hatzis
>
>
>
--
---
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.