You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defis_in(self, value):
"""Creates a condition where the attribute is in the value, :type value: list :param value: The value that the attribute is in. """returnIn(self, value)
(notice the lack of is_)
When using dynamorm, which of these should I be using? SomeModel.scan(attribute__is_in=['opt1', 'opt2']) or SomeModel.scan(attribute__in=['opt1', 'opt2'])?
I've been receiving odd results using both so I'm trying to rule the usage out first.
The text was updated successfully, but these errors were encountered:
I'm looking at the source for
DynaModel.scan()
:This is confusingly close to but different than the language for the
IN
condition operator from boto3 docs:(notice the lack of
is_
)When using dynamorm, which of these should I be using?
SomeModel.scan(attribute__is_in=['opt1', 'opt2'])
orSomeModel.scan(attribute__in=['opt1', 'opt2'])
?I've been receiving odd results using both so I'm trying to rule the usage out first.
The text was updated successfully, but these errors were encountered: