.in_()
Finds all rows whose value on the stated column
is found on the specified values
.
is_
and in_
filter methods are suffixed with _
to avoid collisions with reserved keywords.
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .in_('name', ['Rio de Janeiro', 'San Francisco']);
Examples#
With select()
#
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .in_('name', ['Rio de Janeiro', 'San Francisco']);
With update()
#
1final data = await supabase 2 .from('cities') 3 .update({ 'name': 'Mordor' }) 4 .in_('name', ['Rio de Janeiro', 'San Francisco']);
With delete()
#
1final data = await supabase 2 .from('cities') 3 .delete() 4 .in_('name', ['Rio de Janeiro', 'San Francisco']);
With rpc()
#
1// Only valid if the Stored Procedure returns a table type. 2final data = await supabase 3 .rpc('echo_all_cities') 4 .in_('name', ['Rio de Janeiro', 'San Francisco']);