Skip to content

Run multiple queries with a single HTTP request #900

Discussion options

You must be logged in to vote

it's totally possible to need to query multiple tables independently to provide a wholistic overview of someone's data. And with queries that, to my knowledge, aren't idiomatic to SQL's table joins.

I see two options here:

-- sample dynamic table function
create function all_data(user_id uuid)
returns table(table1_col int, table2_col text, table3_col text) -- can have different types of columns coming from different tables
as $$
-- here you …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Nick-Mazuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants