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
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...
- Current User is Not authorized
recreating same Thread