Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Javascript Reference v2.0

Limit the number of rows returned

Limit the query result by count.

Parameters
    count
    REQUIRED
    number

    The maximum number of rows to return

    options
    Optional
    object

    Named parameters


const { data, error } = await supabase
  .from('countries')
  .select('name')
  .limit(1)