Back

How to convert a document met list to a List<T>

  • 0
  • Android
Hmasters
25 Mar, 2023, 14:51

Hey I am moving from firebase to appwrite and I want to know if there is a way to convert a document list to a a list of my specific class without having to loop through each result. I see a *nestedType *attribute in the *listDocuments *call, how do I use this? I saw no example of this in the docs.

TL;DR
The user wants to know how to convert a document list to a List<T> in Appwrite. They found a nestedType attribute in the listDocuments call but can't find an example in the documentation. There's no solution provided in the thread.
safwan
25 Mar, 2023, 14:55

could you link the place you read this?

safwan
25 Mar, 2023, 15:05

Honestly, I am not sure how and if you can implement this. Going through the docs at https://appwrite.io/docs/client/databases?sdk=android-kotlin#databasesListDocuments, it seems like there is no option for nestedTypes

safwan
25 Mar, 2023, 15:05

I might be wrong, so i guess wait for a developer to respond

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