I am not sure why when I add any query to my list documents, it fails with a 400
Works
TypeScript
await new Databases(clientAdmin()).listDocuments(
process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID,
"trending",
[]
)
Fails 400: message: 'Invalid query: {"method":"limit","values":[10]}',
TypeScript
await new Databases(clientAdmin()).listDocuments(
process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID,
"trending",
[
Query.limit(10),
]
)
Package json:
TypeScript
"appwrite": "^14.0.0",
"node-appwrite": "^12.0.1",
Any thoughts appreciated
TL;DR
Developers are encountering a 400 error when adding a query to list documents. Upgrading to version 13.x may resolve the issue as `appwrite: 14.0.0` isn't compatible with Cloud. The problematic query causing the error is `Query.limit(10)`.appwrite: 14.0.0 isn't compatible with Cloud.
try with 13.x.
oh i see, i thought it might be a version issue. Thank you, i will try it now
Recommended threads
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- createCollection Deprecated
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...