You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to fetch all the items with its attachments using db.rel.find. I've tried to add an option but no luck.
db.rel.find('post', { attachments: true })
I know there's a way to get attachments by using db.rel.getAttachment(type, id, attachmentId). But this one only gets an attachment of a single item.
The text was updated successfully, but these errors were encountered:
markandrewkato
changed the title
db.rel.find doesn't have an option return attachments?
db.rel.find doesn't have an option return attachments (only metadata)?
Sep 4, 2017
@markandrewkato I think you are right that there is no support for what you are looking to achieving. That is getting all the attachments for all the posts. The community is most likely going to have to add this. I may look into it as I am going to be adding some things of my own to the package.
Hi guys,
I am trying to fetch all the items with its attachments using db.rel.find. I've tried to add an option but no luck.
db.rel.find('post', { attachments: true })
I know there's a way to get attachments by using db.rel.getAttachment(type, id, attachmentId). But this one only gets an attachment of a single item.
The text was updated successfully, but these errors were encountered: