
I'd like to check for boolean values, for example like this:
TypeScript
databaseId,
userCollectionId,
[
Query.and([
Query.equal("user_id", user.$id),
Query.equal("deleted", [false]),
]),
]
);```
I've found a matching support thread here, which showed that it works to just put in the value without any bracket and not as string, as far as i understood. But I am wondering if this the correct way, like if it would be mentioned in the docs, what would be written there? I'm unsure since chatGpt mentioned that Appwrite also uses this notation: ```[false]```
TL;DR
You can check for boolean values by inputting them without brackets or strings, like `Query.equal("deleted", false)`. While it may not be explicitly mentioned in the docs, this notation works fine as observed with Appwrite. Recommended threads
- ERROR: NIOHTTPCOMPRESSION/DECOMPRESSION
Hello, I finally got my appwrite self-hosted and created an account which went through to the request. However, when I went to test it through Xcode and login t...
- Best practice for downwards cascade
Suppose I have the database: Books -> Chapters -> Pages And I want to be able to delete a book's chapter, and then cascade the pages in that chapter along side ...
- [SOLVED] URGENT: Project blocked
My project is blocked on Cloud for no apparent reason. I can open the project, but can't access any resources. All request are failing with 401 - general_reso...
