Back

Facing error in Query.select

  • 0
  • Android
  • Databases
Rohit Gupta
2 Aug, 2024, 09:39

I am trying to fetch a selective column from database but getting this error constantly and this is occurring due to Query.select without this command there is no error

TL;DR
Facing error in Query.select when trying to fetch a selective column from the database due to server side attributes being marked as `NonNull` in the SDK. Solution: Add the server side attributes like $id, $collection, $database, $permissions, etc. to Query.select to avoid the crash.
Rohit Gupta
2 Aug, 2024, 09:41
darShan
2 Aug, 2024, 09:43

You probably need to add the server side attributes to Query.select as well, this is a known issue.

attributes like - $id, $collection, $databases, $permissions, etc.

Rohit Gupta
2 Aug, 2024, 09:43

Sorry by mistake sent it multiple times

Rohit Gupta
2 Aug, 2024, 09:43

Ok let me check

darShan
2 Aug, 2024, 09:44
Rohit Gupta
2 Aug, 2024, 09:44

So I can't get a single column data?

darShan
2 Aug, 2024, 09:45

not at the moment. server side attributes are marked as NonNull in the sdk so the app will crash as these are not received if you pass only data side columns in Query.select.

Rohit Gupta
2 Aug, 2024, 09:45

Oh okay

Rohit Gupta
2 Aug, 2024, 09:45

Thanks for replying instantly

darShan
2 Aug, 2024, 09:46

no worries, lmk if that works for you.

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