Back

[SOLVED] How can I use query in python

  • 0
  • Databases
  • Web
bladmist
5 Sep, 2023, 01:03

What's the correct import statement like this: from appwrite.services.storage import Storage. Can't find info on this in the docs. Would appreciate any help

TL;DR
Issue: The user is asking for help with using queries in Python and is facing an error related to indexing the attribute in the query. They also have a question about the correct import statement for a specific module. Solution: The user found a solution to the query issue by indexing the attribute. However, they are still looking for help with the import statement.
bladmist
5 Sep, 2023, 01:12

I seem to have figured it out. Should I have the query like this? It's throwing an index not found error for email:

res = databases.list_documents(databaseID, collectionFilesID, [query.equal("email", [email])])

bladmist
5 Sep, 2023, 01:31

If anyone is facing this issue, you need to first index the attribute.

Drake
5 Sep, 2023, 02:51

[SOLVED] How can I use query in python

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