I have a flutter app where I'm fetching a List of names based on a certain condition from a top-level collection called /students and displaying it one of my screens.
Now I want the user to select these names, with a CheckBoxListTile and then confirm to add these selected names into a deeply nested subcollection of /departments/cse/2017/6 B 17/students/, how do I accomplish this in an efficient way?
I basically want to write all the documents at once into the sub-collection from my List <Student> selectedStudents
while maintaining their firebase userId as the docuemntId in that collection of students.