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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...