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

Marpat: find({}, {population: true}) doesn't work #121

Open
dspangenberg opened this issue Aug 9, 2018 · 1 comment
Open

Marpat: find({}, {population: true}) doesn't work #121

dspangenberg opened this issue Aug 9, 2018 · 1 comment

Comments

@dspangenberg
Copy link

Hi,

marpat from @Luidog, unfortunately, hasn't an issue section, so I try my luck here.

It seems that populate on find doesn't work:

  const data = await Contact.find({}, { sort: ['name', 'firstName'], populate: ['company'] })
  const data = await Contact.find({}, { sort: ['name', 'firstName'], populate: true })

Result: [...] company: "KfwHFVBcHqBqG9hB" [...]

Population with findOne() works fine.

@Luidog
Copy link

Luidog commented Aug 9, 2018

@dspangenberg I just enabled issues on the marpat repo. Sorry about the oversight. I think this issue is more appropriate for that repo. It will be a few weeks until I am able to look into it because I am currently traveling but I will do so once I am back. I suggest you close this issue and open one here:

https://github.com/Luidog/marpat/issues/new

When / if you create an issue would you mind including a specific failing test? This would help greatly.

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