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 adds 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 rows from a table. Using '*' selects all columns.
Fix the error in the code to update the 'age' of a user with id 5.
const { data, error } = await supabase.from('users').update({ age: 31 }).[1]('id', 5);The eq method filters rows where a column equals a value. Here, it selects the user with id 5.
Fill both blanks to delete a product with id 10 from the 'products' table.
const { data, error } = await supabase.from('products').[1]().[2]('id', 10);The delete method removes rows. The eq method filters rows where 'id' equals 10.
Fill all three blanks to select users older than 25 from the 'users' table.
const { data, error } = await supabase.from('users').[1]('*').[2]('age', '[3]', 25);select('*') gets all columns. filter('age', 'gt', 25) selects rows where age is greater than 25.
