Could not find a relationship between 'messages' and 'user' in the schema cache
I'm using the js client to try to attach a "user" to each "message". You can see from the attached screenshot that I have the user id setup as a fk. I believe this is all correct.
I have two RLS policies on
I don't have any user table policies because those are locked (by design I think?)
Now, I'm getting the data like this
And I thought that this would give me the user as
How can I debug this further?
I have two RLS policies on
messages:I don't have any user table policies because those are locked (by design I think?)
Now, I'm getting the data like this
And I thought that this would give me the user as
{ ...message, user }. But it's always returning null. The messages have all been created with a valid user.How can I debug this further?
