6 | * LICENSE file in the root directory of this source tree. An additional grant | ||
7 | * of patent rights can be found in the PATENTS file in the same directory. | ||
8 | */ | ||
9 |
Why is this file named printer.js
?
47 | |||
48 | Required: | ||
49 | |||
50 | --file <path>: The path to the input schema definition file. |
I kinda wish these were optional, and it would assume the first type in the input schema was the query type, and read from stdin if no file was required. But that can be in a follow-up if we ever need it.
13 | |||
14 | var executeTool = require('./src').executeTool; | ||
15 | |||
16 | executeTool().then(function (out) { |
The separation between script and src feels odd to me; this does the stdout
stuff but the src does the file stuff? I almost wish this was just one script, since the "guts" of the script are only three lines, everything else is managing params and output.
Overall, seems good, merge away after addressing inlines.
Login to write a write a comment.
This tool accepts an input graphql schema definition file and
outputs the corresponding introspection query result for that file