Skip to content
Back

I recently switched to TablesDb. When listening rows with Queries it returns 0 rows in python.

  • 0
  • 2
  • Databases
  • Cloud
Hassanmrwt
16 Jan, 2026, 18:22

olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return any Row. tablesDB.list_rows[ queries=[ Query.order_desc("timestamp"), Query.equal("isPosted",False) ] ] Note: Indexes are created.

TL;DR
Switched to TablesDB, queries were returning 0 rows. Removed queries but still no records. Found out TablesDB uses "rows" instead of "documents" for results. Used correct syntax to get rows and it started working fine.
eldad
16 Jan, 2026, 18:36

If you remove all queries, do you get results?

17 Jan, 2026, 05:35

Removed Queries but still no records. I am using fra region, old API key, old collection ID, old project and old db ID.

17 Jan, 2026, 06:03

aaah! I was still looking for documents as documents = result.get("documents", []) if not documents: print("No Documents") but tablesDb returns rows. Now works fine with documents = **result.get("rows", []) ** if not documents: print("No Rows")

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