© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
3 replies
Ηλία

Need a guidance on pagination

I'm trying to use pagination but need a guidance on how to achieve pagination through rest endpoint?

I have 28 records. How to do it dynamically?

 const res = await api.get(`/m_attribute?form_id=eq.${id}&select=*&order=attr_id`, {
            headers: {
                "Authorization": `Bearer ${accessToken}`,
                "apikey": import.meta.env.VITE_SUPABASE_KEY,
                "Range":"0-5"
            }
        })
        return res.data
 const res = await api.get(`/m_attribute?form_id=eq.${id}&select=*&order=attr_id`, {
            headers: {
                "Authorization": `Bearer ${accessToken}`,
                "apikey": import.meta.env.VITE_SUPABASE_KEY,
                "Range":"0-5"
            }
        })
        return res.data
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

Need guidance on Realtime usage/implementation
SupabaseSSupabase / help-and-questions
2mo ago
Building a Login System Using Supabase – Need Guidance
SupabaseSSupabase / help-and-questions
8mo ago
Need guidance on how to make my chat functionality, please help!
SupabaseSSupabase / help-and-questions
4y ago
Architectural guidance
SupabaseSSupabase / help-and-questions
4mo ago