Mappings


(Tue Topholm) #1

Hi All,

I just have a quick question I couldn't find an answer for regarding mappings.

If I map "bytes" to a int, and then I insert the following json:

{
"name":"test",
"data": {"bytes":"dummy"}
}

will the bytes in data also inherit the int or will it see it as data.bytes as a new field and map it as string. or will it generate a conflict because I mapped bytes to int.


(Adrien Grand) #2

data.bytes will be a new field, mapped as a string.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.