Join between auth.users and another table

Hi, I created a table called services with a user_id column that is related to the auth.user.id column. I checked the documentation to learn how to retrieve both the user information and the service data in a single query. However, when I attempt to do this, I encounter the following error: "Could not find a relationship between 'services' and 'users' in the schema cache."

const { data: services, error: servicesError } = await supabase
        .from('services')
        .select('*, users(*)')


I also tried using auth.user(*) but without success.

Thank you.
Was this page helpful?