What should I do if I don't know the id of the doc?
Here is my case:
I have a nested doc like:
{
"Name" : "ABC",
"Tag" : {
"Tag1" : "DEF",
"Tag2" : "GHI"
}
}
and another doc like:
{
"Name" : "XYZ",
"Tag" : {
"Tag1" : "DEF",
"Tag2" : "GHI"
}
}
I want to append them since they have same Tag1 and Tag2 values.
My final doc should be:
{
"Name" : "ABC", "XYZ"
"Tag" : {
"Tag1" : "DEF",
"Tag2" : "GHI"
}
}
I do not have the ID of the docs.
How to I append?