diff --git a/src/lib/data/dropdownQuery.ts b/src/lib/data/dropdownQuery.ts new file mode 100644 index 0000000..f6ac3dc --- /dev/null +++ b/src/lib/data/dropdownQuery.ts @@ -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 }; \ No newline at end of file