-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use condition expressions in a query? #608
Comments
I will check if it's possible to do it with QueryFilter/ScanFilter request parameters (that are deprecated now). |
Sorry for bothering @andrykonchin , but maybe any update on this? Found
|
It seems
But recently So right now |
Hi @andrykonchin . I see new version is here, I checked https://github.com/Dynamoid/dynamoid/pull/655/files but not sure how correctly to pass params to the I still see: field :metadata, :map
# ...
Model.where("metadata.scores.not_null": true ).count
Traceback (most recent call last):
1: from (irb):9
Dynamoid::Errors::Error (Unsupported operator screen_scores in metadata.scores.not_null) |
OK I see name, operator = key.to_s.split('.') So for |
The work is in progress (#696) - I will come back to it soon. |
Hey. I have a question about using Condition expressions with Dynamoid.
See https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html
I have a
users
table withname: String
andsettings: Map
attributes. Settings could contain a lot of different nested maps. I need to filter my query and find only users which hascolor
setting insettings
map, something like:Is it possible to add such condition to Dynamoid
where
query on using some plain AWS sdk call? Thanks 🙇The text was updated successfully, but these errors were encountered: