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

Is it possible to select only a few fields in query? #29

Open
robert-cornescu opened this issue Jul 26, 2016 · 1 comment
Open

Is it possible to select only a few fields in query? #29

robert-cornescu opened this issue Jul 26, 2016 · 1 comment

Comments

@robert-cornescu
Copy link

I have a user table in DynamoDB, with multiple fields, like "email", "phone_number", etc.

However, during a query, I don't need all that data, I need only a few select ones.

I have tried using this query, however I get returned all the fields:

User.find({where: {phone_number: phoneNumberArray}, select: ['phone_number', 'avatar']})

I read about this issue being present in a mongoDB adapter. Is this problem present here too?

@devinivy
Copy link
Collaborator

Yes, I think that may be the case! Would take a PR.

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

No branches or pull requests

2 participants