1 Answer
- Newest
- Most votes
- Most comments
1
Contains will not work unless you specify the entire map, as you don't iterate through the map, you are searching what the List contains. What would be a better solution is to have a map of maps, where you can use the search term as a key to your map, but that would mean the search term would need to be unique.
it would be simply, WHERE conatins(#mylist, :mymao)
. You need to match on a single element in the list.
Given a list of numbers:
[1,2,4,6,8]
conatins(#mylist, 3)
Given a list of maps:
[{a:b, a:c}, {b:b, b:c}, {c:b, c:c}]
conatins(#mylist, {b:b, b:c})
Relevant content
- Accepted Answerasked 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
What would the contains filter expression look like if i want to stay with the List of maps? Seeing that i only have two fields.
Edited my answer.