Replies: 2 comments
-
I am facing the same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
were you able to solve the problem? |
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
-
I have two tables, users (id, name), and services (id, user_id, name).
The
services.user_id
column is set with a foreign key relation tousers.id
.In Supabase studio I see the relation working, if I click the right arrow next to a
user_id
it brings me to the correctuser
entry.I need to query a user and all its related services from Supabase JS now, and I'm using:
The problem is that this returns me the correct user object, but with an empty array as
services
:These are my table definitions:
What am I doing wrong? I have data in the database that should be returned.
Beta Was this translation helpful? Give feedback.
All reactions