Complete the code to select all rows from the 'users' table in Supabase.
const { data, error } = await supabase.from('[1]').select('*');The 'from' method specifies the table to query. Here, 'users' is the correct table name.
Complete the code to filter users where 'age' is greater than 18.
const { data, error } = await supabase.from('users').select('*').[1]('age', 18);The 'gt' method is used to filter where age is greater than 18.
Fix the error in the code to insert a new user with name 'Alice' and age 30.
const { data, error } = await supabase.from('users').[1]({ name: 'Alice', age: 30 });To add new data, use the 'insert' method. 'update' changes existing data, 'select' reads data, and 'delete' removes data.
Fill both blanks to update the 'age' of user with id 5 to 40.
const { data, error } = await supabase.from('users').[1]({ age: 40 }).[2]('id', 5);Use 'update' to change data and 'eq' to specify which rows to update by id equals 5.
Fill all three blanks to delete users older than 60.
const { data, error } = await supabase.from('[1]').[2]().[3]('age', 60);We delete from 'users' table using .delete().gt('age', 60).
