stevearc / flywheel

Object mapper for Amazon's DynamoDB
MIT License
128 stars 25 forks source link

filter_expression with 2 possible values #41

Closed schabert closed 8 years ago

schabert commented 8 years ago

How is it possible that a query use beside the primary key filter an additional filter on an attribute with 2 possible values.

With the boto3 client it is possible duo this syntax filter_expression=Attr('status').ne('terminated') & Attr('status').ne('deleting')

Kind regards :-)

schabert commented 8 years ago

Solved this problem due to: .filter( field._in(['running','updating']) ) Maybe it is better to document the field attributes better in the documentation.

Thank you for that package 👍