get-graphql-schema icon indicating copy to clipboard operation
get-graphql-schema copied to clipboard

Define arg alias and boolean types.

Open swim opened this issue 6 years ago • 1 comments

Hello,

Motivation: Without defining which args are boolean the endpoint url can accidentally be picked up as a value.

Example: node dist/index.js -j http://sym-graphql.docker.local/graphql > symfony.json

Solution: Define the boolean types; and alias to keep it tidy.

Thanks for a wonderful library, really helpful for debugging schemas / stitching.

swim avatar Jul 15 '18 03:07 swim

Does this then change later code where we read from both argv['j'] and argv['json']? Do we only need to read from argv['json'] after this change?

ThisIsMissEm avatar Oct 24 '18 23:10 ThisIsMissEm