Hello! i`m having a small issue with projections using couch base lite android version 2.7.0
Lets say i have the following JSON saved in the database:
{
“id”:“AAAA”,
“data”:{
“innerData1”:{
“key1”:“value1”,
“key2”:“value2”
},
“innerData2”:{
“key3”:“value3”,
“key4”:“value4”
}
}
}
And i`m querying the database with the following projection:
[“id”, “data.innerData1.key1”, “data.innerData2.key3”]
The returned result after transforming the Result object to map looks like this :
{
“id”:“AAAA”,
“key1”:“value1”,
“key3”:“value3”
}
But i need the result to look like:
{
“id”:“AAAA”,
“data”:{
“innerData1”:{
“key1”:“value1”
},
“innerData2”:{
“key3”:“value3”
}
}
}
Is there a way to achieve this behavior? i looked through the documentation but couldn`t find anything.
Thank You!