feat: query function for dropdown

This commit is contained in:
sirin 2024-10-08 23:43:50 +07:00
parent bc0d347e18
commit a2b90d9fb9

View File

@ -0,0 +1,16 @@
import { SupabaseClient } from "@supabase/supabase-js";
function getAllTagsQuery(client: SupabaseClient) {
return client.from("Tag").select("id, value");
}
function getALlFundedStatusQuery(client: SupabaseClient) {
return client.from("FundedStatus").select("id, value, description");
}
function getAllBusinessTypeQuery(client: SupabaseClient) {
return client.from("BusinessType").select("id, value, description");
}
export { getAllTagsQuery, getALlFundedStatusQuery, getAllBusinessTypeQuery };