0 votes
in PouchDB by
How to get an Get an attachment in puchDB?

1 Answer

0 votes
by
db.getAttachment(docId, attachmentId, [options], [callback])

Get attachment data.

Options

  • options.rev: as with get(), you can pass a rev in and get back an attachment for the document at that particular revision.

Example Usage:

Get an attachment with filename 'att.txt' from document with ID 'doc':

Get an attachment with filename 'att.txt' from document with ID 'doc', at the revision '1-abcd':

Related questions

0 votes
asked Jun 5, 2020 in PouchDB by AdilsonLima
0 votes
asked Jun 5, 2020 in PouchDB by AdilsonLima
...