8000 🚀 Feature: queries : implements OR filter · Issue #7233 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🚀 Feature: queries : implements OR filter #7233

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

Closed
2 tasks done
BabyWall-E opened this issue Dec 2, 2023 · 1 comment
Closed
2 tasks done

🚀 Feature: queries : implements OR filter #7233

BabyWall-E opened this issue Dec 2, 2023 · 1 comment

Comments

@BabyWall-E
Copy link

🔖 Feature description

When searching an attribute in multiple columns, we need to use multiple queries because by default, appwrite queries are defined with a AND.

🎤 Pitch

In my use-cases, I have a collection "books":

  • Authors : String[]
  • Illustrators : String[]

If I want to search every books where creator "Timoleon" ($id = creator1) participate, I can't use :
Query.equal("Authors ", ["creator1"]), Query.equal("Illustrators ", ["creator1"])
because it will not return result where Timoleon was only illustrator or only author.

I will have to run two queries :

  • Query.equal("Authors ", ["creator1"])
  • Query.equal("Illustrators ", ["creator1"])
    and remove all duplicates.

If Timoleon appear in 10 books, it's not a problem. But if request returns thousands of results, we can't use the pagination functionnalities (because we can't remove duplicates if we don't have all the results)

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@stnguyen90
Copy link
Contributor

Please 👍 #2740. Closing this as a duplicate.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
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

No branches or pull requests

2 participants
0