JavaScript: Retrieve as a CSV

Return data as a string in CSV format.

Examples

Return data as CSV

const \{ data, error \} = await supabase
  .from('countries')
  .select()
  .csv()