Is there a way i can make a dynamic api which sele...
# sql
s
Is there a way i can make a dynamic api which selects the data requested for the model instead of making get for each field??
like how do i process it as supabase takes csv for select, can i do something like taking the column names in json some way and pass supabase csv of that so it gets all those fields mentioned
any suggestions would be helpful
g
Not really clear on your question. If in the same table you can specify any or all columns you want. If you mean select from several different tables the you would need to use an rpc function.
s
no the table is same just the column i want to be receiving from frontend
like my table has columns A B C D E F
and i want just 1 api instead of 6 for all those columns which returns only those columns requested
so how should i take the payload and send it to the query