Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Scan condition operators do not match boto3 condition operators #102

Description

@Quidge

I'm looking at the source for DynaModel.scan():

* ``IN``: ``Thing.scan(count__in=[11, 12, 13])``

This is confusingly close to but different than the language for the IN condition operator from boto3 docs:

    def is_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.
        """
        return In(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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions