Last active
October 25, 2024 09:16
-
-
Save bizrockman/698243487a2132cbf529ed71a5080b36 to your computer and use it in GitHub Desktop.
Basic Call to get all documents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from appwrite.client import Client | |
from appwrite.services.databases import Databases | |
from appwrite.services.storage import Storage | |
from appwrite.query import Query | |
... | |
app_database = Databases(appwrite_client) | |
result = database.list_documents( | |
database_id=database_id, | |
collection_id=collection_id, | |
queries=[Query.select(["sku"]), Query.limit(limit), Query.offset(offset)] | |
) | |
documents = result['documents'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment