I'd like to do a bulk query to cloudant db.
By supplying a list of _ids (primary key), and have db return any documents with matching _ids.
This is working as shown below. But I'd like to return _id, _rev and field_name also. Is there a way to do this without using include_docs=true?
Request:
http://{db-host}/{db-name}/_all_docs?keys=["1e0a2d30d18d95b9bcc05d92c8736eab","181687d2f16debc10f9e365cc4002371"]
Response:
{
"total_rows": 3,
"rows": [{
"id": "1e0a2d30d18d95b9bcc05d92c8736eab",
"key": "1e0a2d30d18d95b9bcc05d92c8736eab",
"value": {
"rev": "1-a26b67f478e4f3f8fd49779a66fc7949"
}
}, {
"id": "181687d2f16debc10f9e365cc4002371",
"key": "181687d2f16debc10f9e365cc4002371",
"value": {
"rev": "1-7338901ca1c5c06ef81a6971aa6e8f9d"
}
}]
}
idandrev.field_namealso.