Answer the question
In order to leave comments, you need to log in
How to use begin_with and contains together in DynamoDB?
def search(self, key, value):
expression = Attr(key).begins_with(value)
response = self.table.scan(
FilterExpression=expression,
)
print(response)
return response.get('Items')
{
"id": "ORPH:1446",
"names": [
"Ring chromosome 22 syndrome",
"Ring 22",
"Ring chromosome 22",
"r(22) syndrome"
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question