Hi,
What is the best way in dealing of adding an ids to the sub-item of a document. The structure is something like this:
“id” : “1”,
“name” : “test”,
"sub-item: [
{
“item” : “value”,
“item2” : “value2”
}
]
The concept is I should be able to delete the sub-item record by adding a boolean field as ‘delete’ and an ‘Id’ that will auto-increment based on how many records it has. It will look like, like this:
“id” : “1”,
“name” : “test”,
"sub-item: [
{
“id” : “idValue”,
“item” : “value”,
“item2” : “value2”,
“deleted” : false
}
]
Any advice will be appreciated.
Thanks!