pouchDB允许向文档添加附件。我们可以通过添加 attachments: true 拿到文件的时候。
attachments: true
如何使用“查找”功能查询文档并检索其附件?我执行以下操作:
db.find({selector: {type:'question'}})
但答复中不包括附件。
pouchdb和couchdb文档没有提到附件。如果你需要,你应该考虑一下 _all_docs 使用 keys 从 find .
_all_docs
keys
find