what is the proper way to call call multiple rpc f...
# off-topic
r
what is the proper way to call call multiple rpc functions. This is how I'm doing it
Copy code
const { data: project, error } = await supabase.rpc('get_project', { proj_id: projectid })
    if (error) { console.log(error) }
    const { data: bestReadmeAwards, error: error2 } = await supabase.rpc('get_best_readme_winners', { proj_id: projectid })
    if (error2) { console.log(error2) }
    const { data: bestProjectAwards, error: error3 } = await supabase.rpc('get_best_project_winners', { proj_id: projectid })
    if (error3) { console.log(error3) }
    const { data: bestDesignAwards, error: error4 } = await supabase.rpc('get_best_design_winners', { proj_id: projectid })
I'm basically just caling the rpc function one by one. Is there a better way of doing it?