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
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Database listRows method call failing in...
I'm getting an error when trying to use listRows in a flutter app on a database. It seems something in the backend has changed because the production version of...