© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
6 replies
Borislav Borisov

Supabase query data returning null

🟢SSR
For every supabase I've made in the code with the server client, the data field of the return is null. I'm providing an example directly from code:
 const { data: application, error } = await supabase
            .from("oauth_client_applications")
            .update({
                client_secret_hash: newClientSecretHash,
                updated_at: new Date().toISOString(),
            })
            .eq("client_id", client_id)
            .eq("created_by", user.id)
            .select("id, name, client_id, created_at, updated_at, company_vat")
            .single();
 const { data: application, error } = await supabase
            .from("oauth_client_applications")
            .update({
                client_secret_hash: newClientSecretHash,
                updated_at: new Date().toISOString(),
            })
            .eq("client_id", client_id)
            .eq("created_by", user.id)
            .select("id, name, client_id, created_at, updated_at, company_vat")
            .single();

I get an error -> Argument of type '{ client_secret_hash: string; updated_at: string; }' is not assignable to parameter of type 'never'.
Also, the application return value is null.
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

Returning null after data inserted into table
SupabaseSSupabase / help-and-questions
4y ago
getClaims returning null
SupabaseSSupabase / help-and-questions
4mo ago
updating user returning null
SupabaseSSupabase / help-and-questions
4y ago
useUser hook returning null
SupabaseSSupabase / help-and-questions
4y ago