hello, i have list of user in array like this PosterId [18148422710, 13428633922, 221257741408, 563323559863] i want to get the post made by this users so i did something like this in my code
databaseId: Common.dataBasesId,
collectionId: Common.postCollection,
queries: [
Query.orderDesc('postedAt'),
Query.limit(15),
Query.equal('repliedTo', ''),
Query.search('uid', "[$feedPosterIds]"),
],
);```
i have already index uid for `fullText`
Nothing is being returned, the outputted lenght its zero, please how do i achieve this?
I'm not quite clear on what's happening here. What's your Collection schema?
What if you just use the Query.search() and remove the rest of the Queries for now?
Yes, I have done that too
Okay, this is what I want to achieve maybe I'm not doing it correctly.
I have users collection and a post collection
In users collection I have an userId attributes and follower and following attributes
Post collection consist of the post the user send from the app to the database.
In the App, I have people I am following.
So I want to get the post of those people I am following along with my own Post.
Please how do I achieve this?
Please support here....
from the Appwrite Docs, https://appwrite.io/docs/products/databases/queries it show the Query.contains() Keyword but i cant find that in my Flutter client sdk,
i'm using client sdk appwrite: ^11.0.1
contains query was added in 12.0.0
make sure you use v1.5 aswell
I'm using cloud and cloud version its not yet v1.5 yet
😞
Oh, wait - I think that if you pass three ids into Query.search() it will only return if all three are in a Document, not if any of them are in one.
yes, thats what i aim to achieve but its not working
In Appwrite 1.5 we have Query.or(), but for now you might have to do separate requests for each id.
please explain...
You have an array of IDs and you want to get all Documents where uid contains any of them, right? But if you pass in all of them to Query.search(), Appwrite will return only Documenrs which contain all of them, which is, of course, non of them.
no, i dont think so @ideclon , if thats true what about searching for a user name, it return using where mostly have those name
okay, i got you now @ideclon
hello @Steven please whats your insight into this issue, please i need a way to fix this so i can deploy to stores
thanks everyone
Do not tag people as it can be disruptive
i'm so sorry boss
Pls any idea 💡
m
Recommended threads
- Build failed
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- Other DateTime Columns Are Saved Incorre...
When opening a row’s details from the console and editing any field, the timestamps of other DateTime columns are being automatically changed and incorrectly sa...
- Invalid Origin. Register your new client...