AppwriteException: Invalid query: {"method":"equal","attribute":"accountId","values":["XXX"]}
- 0
- Cloud

I was checking version 13.x and
const currentUser = await databases.listDocuments(
appwriteConfig.databaseId,
appwriteConfig.userCollectionId,
[Query.equal("accountId", currentAccount.$id)]
);
This query select is working fine, but at 14.0.0 version, query.equal is giving error as title said.
What is new syntax and how to fix this?

Also query.contains not working.

Hey there 👋 May I ask, do you use Cloud or self-hosting?

Cloud

Thanks 🙌 Cloud is currently running verison 1.4. This version does not have contains
query yet. We plan to upgrade Cloud to version 1.5 in upcoming weeks.
Error you are seing is regarding new query syntax in general. Please use web SDK version 13.0.2
, as that is fully compatible with Appwrite 1.4

"appwrite": "^13.0.2" package.json

I was just wondering, will it be 'fixed' lately or what?

Hmm that shound work 🤔 Let me quickly check source code of 13.x SDK

It's working

I just downgrade it from 14 to 13, all good.

There's no error anymore, just curious will it works lately or?

Yes, SDK 1.4 will work soon on Cloud. Keep an eye on announcment channel on Discord, we will announce when Cloud gets upgraded to latest Appwrite with all features presented during Init.

We took this approach to allow open-source community to adapt to Appwrite 1.5 first, as we always had great success with open source community finding and fixing bugs quickly. This allowed us to have very stable release for Cloud.
I appreciate your feedback and Ill share it with the team to consider quicker Cloud release next time 🙏

Okay good, and one more thing...
createEmailSession is changed with createEmailPasswordSession and deleted in 14.x
That could make bugs lately when someone upgrade their site.

Correct, SDKs can have breaking changes.
You can keep using older SDKs, they will remain to work perfectly fine.
If you do need some new feature from latest SDK, you will need to adapt to those breaking changes. 2 things I would recommend is to:
- Check changelogs, they include notes about all breaking methods
- Have build step in your app. Such build step will fail and show you all methods that became broken

Okay, thanks, have a nice day.

Also one more thing

Always happy to help. Enjoy the weekend 🙌

Actually


There's no option to delete all together?

Auth

In Console, there isn't a way to delete all users with one click. For such cleanup, you could use Server SDK and write a small script to achieve this. You could write this in Node, Python, PHP, Bash, Dart, Java, ...

With every iteration to a service, our design team also improves existing screens. I can imagine this feature being added in next Auth service iteration 🤔

Let's see, thanks, bye 😛
Recommended threads
- Database not found
i am getting an error named - database not found . I have logged on yesterday and it was working fine. But today it fails . More clearly i can say, each new day...
- 500 error trying to view database consol...
My project was blocked yesterday for queries missing a custom index. After it was restored, I was able to see the console last evening. But, when I try to acce...
- 404 if I try to access a non-existent bu...
When I try to access my profile_pictures bucket, Appwrite just gives a 404 error. I made it at the beginning of the year and since I created it this has happene...
