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
- Subscription Problem
I'm making an app in RN with Expo and Appwrite and there's a functionality which allows the user to create a task/test (i'll be reffering to them collectively a...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...