I have a couchbase bucket named 'test' which has 2 documents. The key for those docs are hash value of their respective creation epoch time.
Doc 1:
Key - 3ddd743fd229063273fc1db076e0c81e7b5077909abcba51088febf119c3233c
value -
{
"empId": 1,
"e_name": "abc",
"type": "m",
"managerId": null
}
Doc 2:
key - 33d57d98b68a270ac972b1f392d21d435bbdb1f5cf5a7bbabb1bfacb1215eaac
value -
{
"empId": 2,
"e_name": "def",
"type": "r",
"managerId": 1
}
I'm trying to perform an inner join so that after the join the query would return something like
{
"empName": "def",
"managerName": "abc"
}
I'm not able to perform the inner join here in this case because the join isn't on the key. My question is how do I achieve this.