Syntax for filtering documents #1059
kodumbeats
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
|
Again and as discussed earlier this week, for me the first approach is by far the most intuitive, desired, and the one that matches our simplicity first approach.
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Client Filters for Documents
We're in the planning phases of refactoring our database, and we need your help. We aim to create the best developer experience while we build Appwrite, and we want document filtering to reach that same ease-of-use as the rest of our stack.
We've talked at length about the syntax of these filters - while we've come up with a few options, your 👀 may see things we haven't.
What's your experience?
What's your biggest headache when filtering documents?
Which of our approaches looks the best?
What have we missed?
Our Approaches
To better demonstrate our filtering approaches, assume we have the following data structure:
With this schema in mind, we've used three approaches to fetch data in different scenarios, from simple to more advanced:
Simple
Movie with title 'Iron Man'
Intermediate
Movies published between 1999 and 2001
Advanced
Movies that actors "Brad Pitt" and "Angelina Jolie" performed together, published after 2000, not Directed by "Michael Bay"
Beta Was this translation helpful? Give feedback.
All reactions