containedBy()
案例教程
案例1 (使用select)#
1 2final data = await supabase 3 .from('countries') 4 .select('name, id, main_exports') 5 .containedBy('main_exports', ['cars', 'food', 'machine']);
案例2 (使用update)#
1 2final data = await supabase 3 .from('countries') 4 .update({ 'name': 'Mordor' }) 5 .containedBy('main_exports', ['orks', 'surveillance', 'evil']);
案例3 (使用delete)#
1 2final data = await supabase 3 .from('countries') 4 .delete() 5 .containedBy('main_exports', ['cars', 'food', 'machine']);
案例4 (使用rpc)#
1 2// Only valid if the Stored Procedure returns a table type. 3final data = await supabase 4 .rpc('echo_all_countries') 5 .containedBy('main_exports', ['cars', 'food', 'machine']);