
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
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
