Hi, say that i have a "School" and "Student" objec...
# help
l
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
Can you provide an example of what you have tried so far?
l
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
fouuund it 😆 how did l not see that lol