Reputation: 153
Can't get query on DynamoDB null attributes.
I have below query, I am getting NameError: name 'true' is not defined
const filter = {
FilterExpression: 'id = :null',
ExpressionAttributeValues: {
':null': true,
},
};
Upvotes: 0
Views: 622
Reputation: 1304
You need to specify the type of null as well.
Try this :
const filter = {
FilterExpression: 'id = :null',
ExpressionAttributeValues: {
':null': {BOOL: true}
}
};
Upvotes: 1