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

Fixes broken select on find with populates #466

Open
wants to merge 1 commit into
base: 0.12.x
Choose a base branch
from

Conversation

luislobo
Copy link
Contributor

I know 0.12.x is not being "worked on", but just in case anyone else is having the same issue, I'm posting it here as a PR.

So, fixes situation where Pet will return all attributes, even though you only select 'name'. Just for reference: SELECT only works on sails-mongo in 0.12.x.

Pet.find({select:['name']}).populate('owner').find().exec(console.log)

Related to
#292

@mikermcneil
Copy link
Member

@luislobo thanks Luis!

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