I am not sure why when I add any query to my list documents, it fails with a 400
Works
await new Databases(clientAdmin()).listDocuments(
process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID,
"trending",
[]
)
Fails 400: message: 'Invalid query: {"method":"limit","values":[10]}',
await new Databases(clientAdmin()).listDocuments(
process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID,
"trending",
[
Query.limit(10),
]
)
Package json:
"appwrite": "^14.0.0",
"node-appwrite": "^12.0.1",
Any thoughts appreciated
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
- Cloud function deployment failures
When I run appwrite push functions, select the function I want to deploy, confirm with a YES, is starts deploying but goes into error. I need to repeat the ste...
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...