Open conanchen opened 4 years ago
followed https://blog.quicktype.io/graphql-with-quicktype/ instructions:-
quicktype --graphql-server-header “Authorization: bearer xxxxxxx” --graphql-introspect https://api.github.com/graphql --graphql-schema github.gqlschema Error: Option parsing failed: Unknown option: --graphql-server-header.
Turns out passing headers to things has been moved to the more generic option --http-header, and I guess the blog post hasn't been updated
--http-header
followed https://blog.quicktype.io/graphql-with-quicktype/ instructions:-
quicktype --graphql-server-header “Authorization: bearer xxxxxxx” --graphql-introspect https://api.github.com/graphql --graphql-schema github.gqlschema Error: Option parsing failed: Unknown option: --graphql-server-header.