Complete the code to select the best plan for cost savings.
const plan = supabase.[1]('plans').select('*').eq('type', 'basic')
The from method is used to specify the table to query in Supabase.
Complete the code to filter cost optimization strategies by active status.
const strategies = supabase.from('cost_strategies').select('*').[1]('status', 'active')
The eq method filters rows where the column equals the given value.
Fix the error in the code to update a strategy's budget limit.
const { data, error } = await supabase.from('cost_strategies').[1]({ budget_limit: 1000 }).eq('id', 5)The update method is used to modify existing rows in Supabase.
Fill both blanks to insert a new cost optimization strategy with a name and status.
const { data, error } = await supabase.from('cost_strategies').[1]({ name: 'Auto Scaling', [2]: 'active' })insert adds a new row, and status is the correct key for the status field.
Fill all three blanks to select strategies with budget limits greater than 500 and order by name ascending.
const { data, error } = await supabase.from('cost_strategies').select('*').[1]('budget_limit', [2]).order('name', { ascending: [3] })gt filters for values greater than 500, and true sets ascending order.
