Searched for a foreign key relationship between 'autosend' and 'profile' in the schema 'autosend'
Hi!
Having a supabase issue, I have two schemas. One called
public
and another called autosend
I have a table in the autosend
schema that references a FK profiles.id in the public schema, for some reason when trying to access it through supabase-js I get this error
How can I fix this?
8 Replies
You can see that it's a FK to the public.profiles table
Use profiles in the query maybe.
Yeah, that doesn't do it either:

I'm curious if it's search_path is in the autosend schema instead of being directed to profiles
Missed that it is another schema
You can’t do multiple schema operations in the Rest API
You’ll need a view or RPC call
dang that sucks
Alright, thanks then
@garyaustin out of curiosity.. hope you don't mind the ping but is this safe?
I noticed I wasn't able to see the view's data but wasn't sure if this was a smart/safe approach as this was my first time with a view
Using invoker means obey RLS on the table. Can’t look closer now.
Alright cool