JavaScript: Limit the number of rows returned

Examples

With `select()`

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

With embedded resources

const { data, error } = await supabase
  .from('countries')
  .select('name, cities(name)')
  .eq('name', 'The Shire')
  .limit(1, { foreignTable: 'cities' })