hasura / graphqurl

curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
Apache License 2.0
3.34k stars 101 forks source link

add --insecure/-k flag to allow insecure requests #144

Closed stormsweeper closed 1 month ago

stormsweeper commented 7 months ago

The flags are based on the same ones in cURL. With the flag added, it will create an https agent that does not reject bad certificates.

fix #143

stormsweeper commented 7 months ago

Before:

% gq https://hasura.local/v1/graphql -H "X-Hasura-Admin-Secret: hasura" --introspect > foo.schema
Executing query... error
Error:  { errors: [ { message: 'failed to fetch' } ] }

After:

% gq https://hasura.local/v1/graphql -H "X-Hasura-Admin-Secret: hasura" --introspect -k > foo.schema
Executing query... done