我的 couchDB 数据库中有此类文档的列表。
{
"_id": "9",
"_rev": "1-f5a9a0b76c6ae1fe5e20f1a1f9e6f8ba",
"Project": "Vaibhava",
"Type": "activity",
"Name": "Civil_Clearence",
"PercentComplete": "",
"DateAndTime": "",
"SourcePMSId": "1049",
"ProgressUpdatedToPMSFlag": "NO",
"UserId": "Kundan",
"ParentId": "5"
}
如何编写一个视图函数,以便当我将 adoc._id
作为密钥传递时,我必须获取它的所有兄弟姐妹doc._id
(ParentId 与我发送的密钥相同的文档)?