Closed fbramato closed 1 year ago
I asked to Bing and got this answer (Scan):
This code allows you to get the documents with the documentNumber AF34325, filtering by the attribute of the metadata list.
{
"TableName": "Documents",
"FilterExpression": "contains (metadata, :documentNumber)",
"ExpressionAttributeValues": {
":documentNumber": {"M": {"Key": {"S": "documentNumber"}, "Value": {"S": "AF34325"}}}
}
}
You should add/use an index to use Query instead of Scan. Check if can help somehow 😅
Truly appreciate, you saved my life and many days of headache!
Thanks!
Hi, i'm wondering if i can query a table filtering for a List value containing a Map with Key-Value fields.
a query example i would perform would be: scan the table getting the documents having metadata containing (Key = 'id_sofferenza' and Value = '4076115')
I know it's not a problem strictly related to this library but i'm using this to query an external DynamoDB served from a supplier and unfortunately they can't change the model structure.
This is the document:
Would appreciate if someone could help with this :)
Thanks!