© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
Nin

Supabase JS RC 2 - Unable to get count of rows

Unable to get exact count with option head: true

Below code is executing but returns undefined; why?

const { data: total } = await supabase
        .from("tasks")
        .select("id", { count: "exact", head: true });
      console.log(total);
const { data: total } = await supabase
        .from("tasks")
        .select("id", { count: "exact", head: true });
      console.log(total);
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

Supabase-js-2, alternative to reloadSession()
SupabaseSSupabase / help-and-questions
4y ago
Get user server-side on supabase js 2.0 + next.js
SupabaseSSupabase / help-and-questions
4y ago
Unable to update column value to null (supabase-js)
SupabaseSSupabase / help-and-questions
4y ago
Supabase JS RC Insert returns undefined but database have result?
SupabaseSSupabase / help-and-questions
4y ago