Open kanhaiya-compro opened 4 years ago
Hi @kanhaiya-compro Most of the code above code make sense to me. However, i found a small mistake. contains expression predicts match the exact given string in List data type. So you can use a exact string to compare with using equals expression predict.
Here is the example of one my application doing scan with nested filter expression, purpose of this filter expression is to fetch applications which have pending status AND either first name OR last name begins with given name:
const filterExpression: ConditionExpression = {
type: 'And',
conditions: [
{
type: 'Or',
conditions: [
{
...beginsWith(name),
subject: 'firstname'
},
{
...beginsWith(name),
subject: 'lastname'
}
]
},
{
...inList('pending'),
subject: 'status'
}
]
};
I have an attribute named "NestedAttribute" in DynamoDB table. It has the following nested value.
I want to run scan to filter - parent1.child1-1 contains("guys") or parent1.child1-2 contains("guys"). My question is - Is this possible? and if yes, How is this possible in data mapper.
My current implementation is something like this.. how do i fit the above query in this?
Thanks in advance!