Closed kiya-abdulahi closed 4 months ago
We're also experiencing this same issue.
Seems this other issue is also reporting the same problem: https://github.com/supabase/postgrest-js/issues/477
Also experiencing this issue. Any news on the bugfix?
I believe this one can be closed as of reading this: https://github.com/supabase/postgrest-js/issues/477
Bug report
Describe the bug
I have a relationship between tables that looks something like this:
I then query my event table by slug and join on product as such:
Now my event with a single product should be returned. When I try to target my event doing the following:
Product typing comes back as an array. But when I log the product to my console, i see its not an array but indeed a single product object. This is causing my typings to be incorrect.
Is there something im missing in regards to joins that explains this behavior? Or perhaps my tables are incorrect?
Expected behavior
Expect product to not be an array but an object.
Screenshot
The screenshot shows that when hovering over
event?.product
, it indicates it's an array. But when I logevent?.product
, you can see in my terminal that it's not an array but its an object.System information