Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fauna-shell needs all the other optional flags #148

Open
aprilmintacpineda opened this issue Dec 24, 2021 · 0 comments
Open

fauna-shell needs all the other optional flags #148

aprilmintacpineda opened this issue Dec 24, 2021 · 0 comments

Comments

@aprilmintacpineda
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant