Javascript Reference v2.0

Match an associated value

Match only rows where each column in query keys is equal to its associated value. Shorthand for multiple .eq()s.

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('countries')
  .select('name')
  .match({ id: 2, name: 'Albania' })