Can't retrieve roles tables info with .select

const checkRole = async () => {
          const { data, error } = await supabase.from('roles').select('*')

          if(error) {
            console.log(error)
          }
          else {
            console.log("roles data: " + data.value)
          }
        }


I made a roles table and added the user UID in a column so i can target the user's UID and add a role to it. But it returns Undefined. I tried select.().eq('user_id', userId) and still doesn't work.

What am I doing wrong? using Vue btw
Was this page helpful?