Self-referencing fk not recognized in Supabase query 🐛 #33869
Replies: 1 comment
-
opened github issue in supabase-js supabase/supabase-js#1370 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When querying a table with a self-referencing foreign key using Supabase’s JavaScript client, the expected relational data is not returned. Instead, the returned object is empty, even though the related data exists in the database.
Observed Behavior:
The crewboss field is an empty array instead of returning the related user.
Expected Beahvior:
Additional Debugging Findings
crewboss:pp_user!pp_user_crewboss_id_fkey(id, first_name, last_name)
but received error :Beta Was this translation helpful? Give feedback.
All reactions