Back

[SOLVED] cannot use queries in python when listing documents

  • 1
  • Databases
  • General
vishwa
28 Dec, 2023, 15:17

Is there anyway to increase the limit of fetching of documents in python. Couldnt find any medium from the internet. Please help.

TL;DR
User encountered an issue with using queries in Python to list documents. They had trouble importing `appwrite.query` module but resolved it by uninstalling and reinstalling the module. They are trying to use the `databases.list_documents()` method with a query but it is not working for them. User asked if there is a way to increase the limit of fetching documents in Python.
Kenny
28 Dec, 2023, 15:57

Have you tried query.limit(5000)?

vishwa
28 Dec, 2023, 15:58

Doesnt work. i am trying to get the datas in python btw. couldnt find any documentations listed with python using queries

Kenny
28 Dec, 2023, 16:03
TypeScript
from appwrite.query import Query

databases.list_documents('[DATABASE_ID]','[COLLECTION_ID]',[
      Query.limit(5000),
  ])
Kenny
28 Dec, 2023, 16:03

Are you doing something like this?

vishwa
28 Dec, 2023, 16:35

Oh man thanks a lot. I got it fixed now. i had issues while importing appwrite.query and i tried to uninstall and reinstall the module and now it is fixed

Kenny
28 Dec, 2023, 16:39

Cool beans!

vishwa
28 Dec, 2023, 17:14

[solved] cannot use queries in python when listing documents

D5
28 Dec, 2023, 20:14

[SOLVED] cannot use queries in python when listing documents

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