Skip to main content
Version: v2 RC

csv()

Return data as a string in CSV format.

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

Examples

Return data as CSV

By default, the data is returned in JSON format, but can also be returned as Comma Separated Values.

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