If I have a set of documents of the type:
{
"contactId": "V1234",
"accessMap": {
"130134:24": ["RG1234", "RG456"],
"12345:45": [".....", "....", ..],
...
},
"documentType"="CONTACT_ACCESS_MAP"
}
How can I write a query to select all meta().id of the documents where a certain value, in this case 130134:24 exists in the access map?
I'm thinking something along the lines of:
SELECT n for n in OBJECT_NAMES(accessMap) from access-services where n like "130134:24%" and documentType="CONTACT_ACCESS_MAP