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
- [AppwriteException: Network request fail...
When I tried to list the documents from one of the collections, it would show Error: Network request failed. But if I tried others, it would show all of the doc...
- Question about adding duplicate worker-f...
1.) Is this still this is a valid strategy for having parallel processing of async function executions? I saw some support threads on the appwrite site which we...
- How to detect user disconnection?
I'm creating a 1v1 challenge using realtime and i want to trigger a function when the user disconnect... how to make this using Appwrite Realtime? i searched i...
