JavaScript: Match an associated value (original) (raw)

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

Parameters

(Required)
The object to filter with, with column names as keys mapped to their filter values

Examples

With `select()`

const { data, error } = await supabase
  .from('characters')
  .select('name')
  .match({ id: 2, name: 'Leia' })