code: function fetchDocAsynchronously(metadata, row, winningRev$$1) {
      var key = metadata.id + "::" + winningRev$$1;
      docIdRevIndex.get(key).onsuccess =  function onGetDoc(e) {
        row.doc = decodeDoc(e.target.result);
        if (opts.conflicts) {
          var conflicts = pouchdbMerge.collectConflicts(metadata);
          if (conflicts.length) {
            row.doc._conflicts = conflicts;
          }
        }
        fetchAttachmentsIfNecessary(row.doc, opts, txn);
      };
    }
docs: if the user specifies include_docs=true, then we don't want to block the main cursor while we're fetching the doc