Skip to content

Fixed filter_condition examples in the docs#1204

Open
Ali-Toosi wants to merge 2 commits intopynamodb:masterfrom
Ali-Toosi:master
Open

Fixed filter_condition examples in the docs#1204
Ali-Toosi wants to merge 2 commits intopynamodb:masterfrom
Ali-Toosi:master

Conversation

@Ali-Toosi
Copy link
Copy Markdown

The current examples don't work with DynamoDB because they are using email in the range key condition.
It also doesn't seem like we can combine query terms for range conditions so I changed the wording to specify this is about filter conditions.

No code changes made.

print(user.first_name)

You can combine query terms:
You can combine query terms in filter conditions using OR:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would clarify by saying

You can combine query terms in filter conditions using logical operators (ex, |, &, ==, etc.)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review.
I have given a separate example for & just below this one. Not sure how == would work here for combining queries 🤔
Let me know if there are other logical operators that are supported here. I'll either add them in-line or add a separate example if they make more sense that way.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants