Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db.rel.find doesn't have an option return attachments (only metadata)? #83

Open
markandrewkato opened this issue Sep 4, 2017 · 1 comment

Comments

@markandrewkato
Copy link

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.

@markandrewkato 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
@509dave16
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants