Skip to content
Back

[SOLVED] Query.search() returning all rows in the table

  • 0
  • Resolved
  • 2
  • Databases
  • React Native
SwapnaSahoo
11 Feb, 2026, 11:49

When I use Query.search() instead of returning rows with the keywords provided it just returns all the rows in the table.

TL;DR
The issue with Query.search() returning all rows in the table has been solved.
SwapnaSahoo
11 Feb, 2026, 11:52
TypeScript
  try {
    return await tablesDB.listRows<Post>({
      databaseId: CRIC_TALK_DATABASE_ID,
      tableId: POSTS_TABLES_ID,
      queries: [Query.search("content", query)],
    });
  } catch (error) {
    console.log(`Error while searching posts ${error}`);
    throw error;
  }
}```

this is the code i am using
SwapnaSahoo
11 Feb, 2026, 11:55

[SOLVED] Query.search() returning all rows in the table

11 Feb, 2026, 13:25

What was the solution?

11 Feb, 2026, 13:27

Actually it was my mistake I was calling the wrong function

1
11 Feb, 2026, 14:38

Perfect, glad you realized it

11 Feb, 2026, 16:06

Yes. Thanks for reply.

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