You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nehemiekoffi
changed the title
In loopback 4, Has many relation relation returns undefined instead of empty array when there is no related data
In loopback 4, Has many relation returns undefined instead of empty array when there is no related data
Jun 9, 2024
nehemiekoffi
changed the title
In loopback 4, Has many relation returns undefined instead of empty array when there is no related data
In loopback 4, Hasmany relation returns undefined instead of empty array when there is no related data
Jun 9, 2024
Steps to reproduce
Query data by including hasmany relation..
Current Behavior
in the result, you will notice that books is undefined for authors who dont have any books.
Expected Behavior
Books should return empty array for authors who don't have books. it was like that in loopback 3.
Link to reproduction sandbox
Additional information
Related Issues
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: