
So I am using an query to search more affectively to the right places but the startswith query suddenly broke:
TypeScript
[
'{"method":"equal","attribute":"lister","values":["663fa5de5184c90188a3"]}',
'{"method":"orderDesc","attribute":"$createdAt"}',
'{"method":"startsWith","attribute":"$createdAt","values":["2024-08-"]}',
'{"method":"limit","values":[5000]}'
]
C:\vectra\Vectra-Back\node_modules\node-appwrite\dist\client.js:275
throw new AppwriteException(data == null ? void 0 : data.message, response.status, data == null ? void 0 : data.type, data);
^
AppwriteException: Invalid query: Query value is invalid for attribute "$createdAt"
at _Client.call (C:\vectra\Vectra-Back\node_modules\node-appwrite\dist\client.js:275:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.listDocuments (C:\vectra\Vectra-Back\node_modules\node-appwrite\dist\services\databases.js:1577:12)
at async getOrdersChart (C:\vectra\Vectra-Back\lib\appwrite.js:259:16)
at async handler (C:\vectra\Vectra-Back\routes\dashboard\stats.js:43:45) {
code: 400,
type: 'general_query_invalid',
response: {
message: 'Invalid query: Query value is invalid for attribute "$createdAt"',
code: 400,
type: 'general_query_invalid',
version: '1.5.7'
}
}
I am on Version 1.5.7.
It happens at query:
'{"method":"startsWith","attribute":"$createdAt","values":["2024-08-"]}',
TL;DR
Developers using a query for searching encountered a problem where the 'startsWith' query broke specifically at the point: `'{"method":"startsWith","attribute":"$createdAt","values":["2024-08-"]}',`. The error indicates "Invalid query: Query value is invalid for attribute "$createdAt"." This issue was encountered on version 1.5.7.Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
