I'm using python appwrite function.
Error:
appwrite.exception.AppwriteException: Invalid query: Attribute not found in schema: _createdAt
Code:
results = Databases(client).list_documents('DATABASE', 'COLLECTION', [
Query.and_queries([
Query.equal('id', [user['$id']]),
Query.between('$createdAt', start_iso, end_iso)
])
])
For date conversion: datetime.now().isoformat()
Is it not just and? In the docs I'm not seeing and_queries
Query.and([
Query.equal('id', [user['$id']]),
Query.between("$createdAt", start_iso, end_iso)
])
I'm on v1.5.7 self-hosted appwrite version. Using python sdk v5.0.3
I just checked even in Python SDK v6.1.0; it's the same. However, the documentation has and
only
I think the documentation is incorrect. In Python, or
and and
are built-in keywords.
Facing issue with querying the database "$createdAt"
Recommended threads
- My Explore page suddenly stopped working
The website careerquest-gcet@vercel.app has an explorepage which suddenly stopped and i am guessing that it is because appwrite cahnged some variable names so i...
- [SOLVED] Could not resolve host: exc1 wi...
Not able execute functions
- How do I reference an Appwrite account i...
For Live Coding Alliance's website I would like to create multiple live coding profiles to switch between for each Appwrite account; clearly I can't make a rela...