S
Posts: 0
Joined: Sun Jan 27, 2013 7:48 am

Array column in Tiggzi DB

Hi,
How can I define the array column in the DB to hold an array of objects?

I would like to create a collection similar to the below, in which "scol" is an array of objects, each object holding two columns - "sidcol" and "sencol".

{"data":
[
{
"id":"51040266e4b0e330589c58c4",
"fcol":"123",
"scol":[]
},
{
"id":"5104026ce4b0e330589c58c5",
"fcol":"345",
"scol":
[
{
"sidcol":"s12345",
"sencol":"abcdefgf"
},
{
"sidcol":"s123456",
"sencol":"abcdefgf"
}
]
},
{
"_id":"51040259e4b0e330589c58c2","fcol":"12345",
"scol":
[
{
"sidcol":"s12345",
"sencol":"abcdefgf"
},
{
"sidcol":"s123457",
"sencol":"abcdefgf"
}
]
}
]}

Thanks!

Return to “Issues”