I am developing a Flutter application containing nested data (having more than 3 levels of nesting) e.g. StudentClass -> Student[] -> Person -> Contact -> Place i.e. StudentClass containing Student (list), Student containing Person, and so on. I am unable to handle such situations. Please suggest some tutorials for such applications containing nested data.
It depends on how your app works. For example, if you end up opening a person, you fetch the person when you open that person route/page
Thank you very much for your reply. I would like to fetch StudentClass data containing all related data of all the students, or the data of a single student in class containing all the related data. This will be possible if we have relationships for more than 3 levels.
you can achive this using relationships, I'm using 2 levels in my flutter app and I'm using relationships to get the data in single request. you can do the same for 3 levels.
Relationships are currently limited to three levels.
so it will work for him for 3 levels
No, he wants five levels
then he should restructure his database, to optimize his requests make it posibble with 3 levels.
Recommended threads
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- 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...