Hi Eric,

The syntax is following

CREATE PROPERTY ClassName.propertyName EMBEDDEDLIST EMBEDDEDMAP

but I see that in your list you have a mix of maps and sublists, so I'm
afraid it won't work...

Luigi


2017-10-26 15:27 GMT+02:00 Eric Lenington <e...@24x8.com>:

> Thanks for the quick response. I'm not familiar with that option. What's
> the syntax of the create property statement to do this?
>
> On Thu, Oct 26, 2017 at 8:25 AM, Luigi Dell'Aquila <
> luigi.dellaqu...@gmail.com> wrote:
>
>> Hi Eric,
>>
>> Try to define the property as EMBEDDEDMAP with LINKEDTYPE = EMBEDDEDMAP,
>> it should solve the problem
>>
>> Thanks
>>
>> Luigi
>>
>> 2017-10-26 4:37 GMT+02:00 Eric24 <e...@24x8.com>:
>>
>>> Using ODB 2.2.28, I have a simple Class that contains an EMBEDDEDLIST
>>> called "data". If I update "data" like this:
>>> UPDATE #12:4 SET data = [{"a":111}, {"b":222}, [{"c":555}, {"d":777}]]
>>>
>>> The result of then selecting "data" from the record is this:
>>> [{"@type":"d","@version":0,"a":111},{"@type":"d","@version":0,"b":222
>>> },[{"c":555},{"d":777}]]
>>>
>>> As you can see, "data" contains three elements, as expected, but why do
>>> the two elements that are standalone objects get @type and @version
>>> properties, while the element that is an array of objects element does not?
>>> And more specifically, I would prefer to avoid the standalone objects from
>>> being treated in this way.
>>>
>>> --
>>>
>>> ---
>>> 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 orient-database+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "OrientDB" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/orient-database/Eo3cdN-DlMM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> orient-database+unsubscr...@googlegroups.com.
>> 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 orient-database+unsubscr...@googlegroups.com.
> 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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to