Skip to content

conditional get an item using get() #223

@avtaniket

Description

@avtaniket

Can we do conditional get an item using get() as below?

let conditonParams = {isDeleted: false};
Account.get('test@example.com', {ConsistentRead: true, conditons : conditonParams}, function (err, acc) {
  console.log('got account', acc.get('email'));
})

I know we can do conditional fetch using query() and scan()

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions