Hi Eric,

The alternatives are:


PUT: just use dot notation

UPDATE ADoc PUT aMap = "aKey", "aValue"

can be written as

UPDATE ADoc SET aMap.aKey = "aValue"
or
UPDATE ADoc SET aMap["aKey"] = "aValue"


ADD: use array concatenation ||

UPDATE ADoc PUT aList = "aValue"

can be written as

UPDATE ADoc SET aList = aList || "aValue"
or
UPDATE ADoc SET aList =  "aValue" || aList
depending on where you want to add the value (first or last element of the
list). For sets it does not make any difference of course

For a full reference see http://orientdb.com/docs/3.0.x/sql/SQL-Syntax.html

Thanks

Luigi


2018-01-02 7:32 GMT+01:00 <[email protected]>:

> Hi,
>
> you can take a look at these links:
>
> *OrientDB 3.0 Release Notes: *https://github.com/
> orientechnologies/orientdb/wiki/OrientDB-3.0-Release-Notes
>
> *OrientDB 2.2 Release Notes: *https://github.com/
> orientechnologies/orientdb/wiki/OrientDB-2.2-Release-Notes
>
> Here you can see all the differences / enhancement.
>
> 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.
>

-- 

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