
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.
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
- Cannot use Google Oauth in my Project
I tried to use Appwrite Google Oauth Provider in my app but had some troubles. I receives this error no matter what: error or success: 2025-09-21 18:50:33.845 3...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
- Google signin with appwrite
I want to use Google sign in in android and create session from idToken using appwrite. But, i don't know if it's achievable or not. because i don't want to use...
