MCPcopy Index your code
hub / github.com/apache/pouchdb / fetchAllAttachments

Function fetchAllAttachments

lib/index.js:7203–7212  ·  view source on GitHub ↗
(docOrDocs)

Source from the content-addressed store, hash-verified

7201 }
7202
7203 function fetchAllAttachments(docOrDocs) {
7204 if (Array.isArray(docOrDocs)) {
7205 return Promise.all(docOrDocs.map(function (doc) {
7206 if (doc.ok) {
7207 return fetchAttachments(doc.ok);
7208 }
7209 }));
7210 }
7211 return fetchAttachments(docOrDocs);
7212 }
7213
7214 const url = genDBUrl(host, id + paramsToStr(params));
7215 try {

Callers 1

HttpPouchFunction · 0.70

Calls 1

fetchAttachmentsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…