Joined table filter includes null values
encountering a super odd case here:
I'm trying to check an equality across a referenced table.
My TS code is as follows, and I'll provide the table definitions in a moment:
The above query will return results where
I'm trying to check an equality across a referenced table.
My TS code is as follows, and I'll provide the table definitions in a moment:
The above query will return results where
staff_id.linked_user_id is null, not strictly equal to user.id. I have had to specifically add .not("staff_id", "is", null) to the query chain to make it return only where linked_user_id equals the user's ID