I have three docs in CouchDB/Cloudant as follows:
all_docs :[{
_id: "content1"
files: ["fileA", "fileB", "fileC"]
}, {
_id: "content2"
files: ["fileD", "fileE", "fileC"]
}, {
_id: "content3"
files: ["fileF", "fileG", "fileH"]
}
I need to get content1 and content2 as result for FileC where I can pass FileC as key.
Is there a way to write a view that returns doc ids (content1 and content2) where the file is FileC?