Query table from edge function

I am new to Supabase and love it so far but think I'm making a dumb mistake. I created tables then an edge function.

const supabaseClient = createClient(
  // Supabase API URL - env var exported by default when deployed.
  Deno.env.get("SUPABASE_URL") ?? "",
  // Supabase API ANON KEY - env var exported by default when deployed.
  Deno.env.get("SUPABASE_ANON_KEY") ?? ""
);

const { data, error } = await supabaseClient
    .from("table_name")
    .select("*");

  console.log({ data, error });


I am getting an error
{
  data: null,
  error: {
    code: "42P01",
    details: null,
    hint: null,
    message: 'relation "public.table_name" does not exist'
  }
}


Do I need to do something else to link up my tables to my edge functions? Thanks in advance for the help
Was this page helpful?