If I run this function without providing the relatedItemName property everything works as expected. As soon as I pass in the name and thus filter by it then the related_item property returns null for all items but the very first one.
Expected behavior
Both queries should return both the original item aswell as the related item.
System information
Version of supabase-js: 2.39.2
Version of Node.js: 18.19.0
Version of Supabase: Selfhosted Docker Instance
Additional context
If this is an Issue with PostgREST rather than with the supabase client, feel free to tell me, then I will move the issue over there.
Bug report
Describe the bug
The returned results of a query differ based on whether that query is filtered on a related property or not.
To Reproduce
I want to create a query in which I sometimes filter by certain properties and sometimes I don't, as such:
If I run this function without providing the
relatedItemName
property everything works as expected. As soon as I pass in the name and thus filter by it then therelated_item
property returns null for all items but the very first one.Expected behavior
Both queries should return both the original item aswell as the related item.
System information
Additional context
If this is an Issue with PostgREST rather than with the supabase client, feel free to tell me, then I will move the issue over there.