Javascript Reference v1.0

Match an associated value

Finds all rows whose columns match the specified query object.

Parameters
    query
    REQUIRED
    Record

    The object to filter with, with column names as keys mapped to their filter values.


const { data, error } = await supabase
  .from('cities')
  .select('name, country_id')
  .match({name: 'Beijing', country_id: 156})