xSenny_
Is there any way to do something like this
TypeScript
const messages = await databases.listDocuments(
appwriteConfig.databaseId,
appwriteConfig.messagesCollectionId,
[
Query.or(
[
Query.equal("senderId", id),
Query.equal("getterId", id),
]
)
]
);```, ``[TypeError: _reactNativeAppwrite.Query.or is not a function (it is undefined)]`` ik Query.or does not exist. I'm using appwrite sdk for native react
TL;DR
The developer is trying to use the `Query.or` method from Appwrite SDK in a native React project but is facing a TypeError stating that `Query.or is not a function`. The issue is that the `Query.or` does not exist in the SDK for React Native. Honzosaurus_3.1415926535
Yes and I'm not exactely sure why it's not working for you:
TypeScript
// an example from appwrites docs
Query.or(
[Query.lessThan("size", 5), Query.greaterThan("size", 10)]
)
https://appwrite.io/docs/products/databases/queries#query-class
Recommended threads
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...