Skip to content

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

@robert-cornescu

Description

@robert-cornescu

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions