João Vitor
02/21/2022, 7:28 PMposts
with a user_id
foreign key to auth.users.id
and I'm trying to query the user info like this :
js
supabase.from('posts').select('*, users(*)')
but I'm getting this error "Could not find a relationship between 'posts' and 'users' in the schema cache"silentworks
02/21/2022, 7:35 PMsilentworks
02/21/2022, 7:35 PMJoão Vitor
02/21/2022, 7:45 PMsilentworks
02/21/2022, 7:46 PMJoão Vitor
02/21/2022, 7:46 PMsilentworks
02/21/2022, 7:46 PMJoão Vitor
02/21/2022, 7:48 PMsql
create table public.developers (
id uuid references auth.users not null,
primary key (id)
);
alter table public.profiles enable row level security;
Should this be enough?João Vitor
02/21/2022, 7:49 PMauth.users
?silentworks
02/21/2022, 7:56 PMsilentworks
02/21/2022, 7:58 PMJoão Vitor
02/21/2022, 8:05 PMJoão Vitor
02/21/2022, 8:05 PMauth.users
already has the emailJoão Vitor
02/21/2022, 8:06 PMJoão Vitor
02/21/2022, 8:07 PMsilentworks
02/21/2022, 9:03 PM