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
{{ message }}
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
Currently, when a join does not yield any rows, the joined query is added with value null. To remain consistent with the rest of the Query methods, which return an empty array when no rows are returned, this should be fixed such that:
if all rows are empty, set the value to []
if first is configured, set the value to null
This is a breaking change for all code that checks existence of the joined data:
constfoo=awaitFoo.query.join(Bar,{as: 'bar'}).fetch();if(foo.bar){// this will fail}
NOTE that this only applies to leftJoin. for join and innerJoin the rows should always be non-empty.
ensure that this only applies to leftJoin
ensure that for join and innerJoin the rows are always non-empty