-
Notifications
You must be signed in to change notification settings - Fork 49
Query documents based on array of strings? #40
Comments
@AdriaandeJongh So you're looking to return based on document id which is the name of the document itself? One thing I would suggest is, add an |
Even that wouldn't work because |
@AdriaandeJongh I see. I'm swamped lately with work otherwise I'd look into adding that feature. If you think it's an easy add, run some unit tests and send a pull request, I'm sure just need to configure the query check using multiple on arrays. Its a feature we should have since it would work similar to a SQL |
I spent an hour looking into this yesterday but having essentially no experience with PHP, coming from C#, I have absolutely no idea how the whole querying system works, so I'm going to leave this to you - sorry! The workaround I just came up with that 'sort of' works for me right now :
|
@AdriaandeJongh A recent update has provided you with a feature to accomplish this. Let me know if this resolves your issue. I will close it for now. $documents = $db->where('__id', 'IN', ['id1', 'id2'])->results(); |
Hey there!
I can't figure out how to do the following. Say I have this:
Is there a way I can query, order, and return the database, with the full documents? The following obviously won't work:
But how would I go about something like this?
Note that I am specifically looking for a way to return the full documents, because I need the id's.
The text was updated successfully, but these errors were encountered: