fauna-shell needs all the other optional flags
aprilmintacpineda opened this issue · 0 comments
aprilmintacpineda commented
I'm trying to use fauna-shell to upload schema.graphql:
fauna upload-graphql-schema fauna/schema.graphql --domain db.us.fauna.com --secret SECRET_HERE --mode override
But I keep getting:
UPLOADING SCHEMA (mode=override): fauna/schema.graphql
TypeError: Only HTTP(S) protocols are supported
I finally got it to work by running:
fauna upload-graphql-schema fauna/schema.graphql \
--domain db.us.fauna.com \
--secret asdasd \
--mode override \
--graphqlHost graphql.us.fauna.com \
--scheme https \
--graphqlPort 443
notice how I had to provide all options which were supposed to be optional -- which I think is a bug.
PS: DON'T USE --method override
!! IT WILL CLEAR ALL RECORDS IN ALL YOUR COLLECTIONS, IT'S ESSENTIALLY THE SAME AS STARTING FROM SCRATCH.
FULL STORY HERE: https://forums.fauna.com/t/using-fauna-shell-to-upload-graphql-schema-for-ci-cd/2826