{message: 'Could not find a relationship between c...
# help
b
{message: 'Could not find a relationship between chats and user_id in the schema cache', hint: 'If a new foreign key between these entities was cr… in the database, try reloading the schema cache.'}hint: "If a new foreign key between these entities was created in the database, try reloading the schema cache."message: "Could not find a relationship between chats and user_id in the schema cache" Is there anybody who is having this problem on relational tables?
s
What's the request you're doing? (pls share a code snippet)
b
I have a realation ship between public and auth schema. Chats table in the public and it has relation with users. Trying to fetch chats with selection users but it gives this error.
await supabase .from("chats") .select(
id,last_message,last_active,user_id,responsible_agent("avatar","first_name")
) .eq("user_id", supabaseUser.id) .order("created_at", "desc") .limit(1);
responsible_agent is a realtion with users table
s
The
auth.users
table is not exposed through the API, as it's private.
b
So should I do create profile table in the public schema?