What is the recommended way to query for attachments across multiple documents? For example, image thumbnails for display in a list view or grid view. It's not clear how best to do this in either 1.x or 2.0.
In 1.x, it looks like the file path can be constructed from the database, document, and attachment name, which means that attachments can effectively be indexed using map/reduce and queried.
In 2.0, the new
Blob api exposes
content and
contentStream properties. The latter sounds promising, but how to access Blobs from a query? Also, is there a way to access the file path directly? I understand that accessing attachments directly as files is discouraged. However you also
point out that there are APIs in iOS/OS X that only take paths as input, not NSData or NSStreams.
Curious to get some official guidance on this, thanks.