Back

get Users Data in Array

  • 0
  • Flutter
  • Cloud
Zionnite
15 Apr, 2024, 03:51

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

TypeScript
        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?
TL;DR
Developers are trying to retrieve posts made by users in an array using queries in their code, but nothing is being returned. They're wondering how to achieve this. Solution: Check the query conditions and the index setup to ensure proper matching of user IDs.
ideclon
15 Apr, 2024, 03:58

I'm not quite clear on what's happening here. What's your Collection schema?

Zionnite
15 Apr, 2024, 03:59
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more