I have a few tables in the database in a Hasura cluster. I want to export one them as a CSV file (with the data). How can I do this?
You can follow one of the following methods:
Connect to the database and use psql to export data as CSV:
a) Directly access the underlying Postgres db instance:
hasura microservice port-forward postgres -n hasura --local-port 6432
b) follow this SO question to actually export data as a CSV file (assumes you have psql installed).
Use the data APIs to write a simple service that can convert JSON to CSV and save it to a file.