api query parameters in toddle
how would this sql call look like in a toddle api call ? I am not sure how to incorporate the where and order by clauses . thanks SELECT * FROM profiles WHERE LOWER (name ) LIKE LOWER (CONCAT ( ' % ' , :search , ' % ' ) ) OR LOWER (username ) LIKE LOWER (CONCAT ( ' % ' , :search , ' % ' ) ) ORDER BY CASE WHEN user _type IN ( 'Club ' , 'Player ' ) THEN 0 ELSE 1 END , name LIMIT 7 ; Supabase uses PostgREST for its Rest API so you can use its docs to get an idea of how to do it : https://docs.postgrest.org/en/v12/references/api/tables_views.html