有没有办法根据不是哈希键的字段获取项目?
例
我的表用户: id (HashKey), name, email
我想检索发送电子邮件为'test@mail.com'的用户
怎么做到这一点?
我用boto尝试这个:
user = users.get_item(email='john.doe@gmail.com')
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
'The provided key element does not match the schema'
Run Code Online (Sandbox Code Playgroud)