databases = Databases(client)
Im receiving an error for this saying that databases is not defined. this code was taken from the SDK for python.
heres the actual code in the SDK
from appwrite.client import Client
client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with
databases = Databases(client)
result = databases.list_documents( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', queries = [] # optional
Recommended threads
- Issue with relations on database
I'm creating a food ordering website for businesses. I'm having issues with the relations on my database I attached the attributes for the collections I'm hav...
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems