Back

Invalid Query

  • 0
  • Flutter
harveyaptx
26 Apr, 2024, 12:03

Hello 👋

I'm using appwrite flutter sdk and no matter how I tried to build a query it always throws an exception.

Here's my code and the exception

TL;DR
- Developers are encountering an Invalid Query error while using the appwrite flutter SDK. - They are unsure if 'roomId' is a valid attribute and question the structure of their collection and potential relationships. - The solution provided is to remove the 'jsonEncode' surrounding 'Query.search(...)' as the 'Query' functions return a String.
harveyaptx
26 Apr, 2024, 12:03

Invalid Query

Ernest
26 Apr, 2024, 12:08

Remove the jsonEncode surrounding Query.search(...). The Query functions return a String

harveyaptx
26 Apr, 2024, 12:22

I tried that before adding it

It's the same result!!

Ernest
26 Apr, 2024, 12:40

Is roomId a valid attribute? What's the structure of your collection and does it have any relationships?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more