Skip to content

Instantly share code, notes, and snippets.

@bizrockman
Last active October 25, 2024 09:16
Show Gist options
  • Save bizrockman/698243487a2132cbf529ed71a5080b36 to your computer and use it in GitHub Desktop.
Save bizrockman/698243487a2132cbf529ed71a5080b36 to your computer and use it in GitHub Desktop.
Basic Call to get all documents
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