Python: Match the filter

filter() expects you to use the raw PostgREST syntax for the filter values.

.filter('id', 'in', '(5,6,7)')  # Use `()` for `in` filter
.filter('arraycol', 'cs', '\{"a","b"\}')  # Use `cs` for `contains()`, `\{\}` for array values

Parameters

Examples

With `select()`

response = (
    supabase.table("planets")
    .select("*")
    .filter("name", "in", '("Mars","Tatooine")')
    .execute()
)

On a foreign table

response = (
    supabase.table("orchestral_sections")
    .select("name, instruments!inner(name)")
    .filter("instruments.name", "eq", "flute")
    .execute()
)