Open
Description
Hi!
Is it possible to use the v1alpha1/pg_dump
endpoint with using the -Fc
flag?
I get the expected response using the options in the example at:
https://hasura.io/docs/1.0/graphql/manual/api-reference/pgdump.html
Support via intercom said:
Could you raise an issue in Github, ideally we expect any option to work when provided in the opts argument.
The following call:
curl --request POST \
--url https://example.com/v1alpha1/pg_dump \
--header 'content-type: application/json' \
--header 'x-hasura-admin-secret:MYSECRET' \
--data '{
"opts": [
"-Fc",
"--schema",
"core"
],
"clean_output": false
}'
…returns:
{
"path": "$",
"error": "internal exception while executing pg_dump",
"code": "unexpected"
}
Any tips?
Cheers, ptim