6 ms·
In the example given here, how would one answer the following questions: 1. For a given school, return all the students 2. For a given school, return all the
by lukewink 10y ago
In the example given here, how would one answer the following questions:
1. For a given school, return all the students
2. For a given school, return all the classes
In the last data model given (the correct one), the above 2 things can't be done (I think) without doing something funky like enumerating all the Enrollments and finding unique students/classes. In order to modify the data model to provide the needed information, wouldn't you run into the same borrow checker problems?