How to access a file from table with js API

Hi, I have a table called Recipes in which I created a column image_id which is a foreign key to an image id in my public bucket recipe_images.

I would think that with the js API I could get the image with const { data, error } = await supabase.from("Recipes").select("recipe_images(*)").

However this results in Could not find a relationship between 'Recipes' and 'recipe_images' in the schema cache

I can't find the correct way in the docs, does someone know how to do this?
Was this page helpful?