© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
17 replies
arata

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)
          }
        }
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
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Failed to retrieve tables
SupabaseSSupabase / help-and-questions
4mo ago
Can't read tables with service role
SupabaseSSupabase / help-and-questions
6mo ago
Can't load any tables
SupabaseSSupabase / help-and-questions
6mo ago
connection info can't find
SupabaseSSupabase / help-and-questions
5mo ago