
Am having a hard time setting up queries for a python function that pulls a list of users an send notification to each user and there is no documentation showing this. as shown below;
TypeScript
result = database.list_documents(
database_id="smilesCars",
collection_id="users",
queries = {
# "$filter": "bdate=24", # Replace with your actual field name and value
# "$filter": "bmonth=11", # Replace with your actual field name and value
# "$limit": 25, # Replace with the desired limit
# "$offset": 0 # Replace with the desired offset
}
)
TL;DR
Problem: The developer is having trouble setting up queries for a Python function that pulls a list of users and sends notifications to each user. They mention that there is no documentation showing how to do this.
Solution:
To set up queries in Python using Appwrite, you can use the `list_documents` function from the `database` module. In the code provided, the `queries` parameter is currently commented out. Uncommenting and modifying the `queries` dictionary inside `list_documents` will allow you to filter and limit the results based on specific field values. For example, you can use `$filter` to specify a specific field andRecommended threads
- Cannot sign in with APPLE
I'm a self hosted, https://staging.app.doko.so/ verion 1.8.0-RC2. I am doing sign in with apple and google, i followed everything of the doc, but it still didn'...
- Getting an Interesting error when trying...
When I try to execute ```python tx = tablesDB.create_transaction() ``` I get this error message: ``` app.############@service.cloud.appwrite.io (role: applicat...
- Deploy sites confusion (1.7.4) / Node
Hi, I have a project with two version of the same website. One if in french, the other in english. They share the same databases and storage but I've deployed ...
