Hi, say that i have a "School" and "Student" objects , the "Student" has a "school_id" reference ,
now when l query a student, how can l get the School object (instead of only the school_id) in the json response
like this:
s
silentworks
09/08/2021, 11:48 AM
Can you provide an example of what you have tried so far?
l
LuddensEkko
09/08/2021, 12:59 PM
what m doing now is just getting the the "Student" record, pick up the school_id and hit the database again to fetch the corresponding "School" object. but this feels odd so l was wondring if l am missing out on some other way