© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
31 replies
Deleted User

Why does this return an empty Array?

I am trying to get all the data from the
Scores
Scores
table of my database. For some reason I get an empty array when logging
data
data
even though I already inserted a row into my table. Am I missing something?

Code:
    import { supabase } from '$lib/supabaseClient';

    async function getScoreList() {
        let { data, error } = await supabase
        .from('Scores')
        .select('*')

        console.log(data)
    }

    getScoreList()
    import { supabase } from '$lib/supabaseClient';

    async function getScoreList() {
        let { data, error } = await supabase
        .from('Scores')
        .select('*')

        console.log(data)
    }

    getScoreList()
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

Getting an empty array on update
SupabaseSSupabase / help-and-questions
4y ago
Empty array as response
SupabaseSSupabase / help-and-questions
4y ago
query returns empty array
SupabaseSSupabase / help-and-questions
13mo ago
Receiving empty array from query
SupabaseSSupabase / help-and-questions
8mo ago