Complete the code to insert a new row into the 'users' table.
const { data, error } = await supabase.from('users').[1]({ name: 'Alice', age: 30 })The insert method is used to add new rows to a table in Supabase.
Complete the code to select all rows from the 'products' table.
const { data, error } = await supabase.from('products').[1]('*')The select method retrieves data from a table. Using '*' selects all columns.
Fix the error in the code to update the 'age' of user with id 5.
const { data, error } = await supabase.from('users').[1]({ age: 31 }).eq('id', 5)The update method modifies existing rows. Here, it updates the 'age' where 'id' equals 5.
Fill both blanks to delete rows where 'status' is 'inactive' from the 'accounts' table.
const { data, error } = await supabase.from('accounts').[1]().[2]('status', 'inactive')The delete method removes rows. The eq method filters rows where 'status' equals 'inactive'.
Fill all three blanks to select 'name' and 'email' from 'customers' where 'age' is greater than 25.
const { data, error } = await supabase.from('customers').[1](['name', 'email']).[2]('age', [3], 25)Use select to choose columns, filter to apply conditions, and gt as the operator symbol for greater than.