Skip to content

Commit 92fe8d2

Browse files
committed
Merge pull request #83 from josephsavona/printschemaencoding
Set encoding when reading schema file
2 parents d3e9189 + 137e847 commit 92fe8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/print-schema/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function executeTool() {
3737
process.exit(0);
3838
}
3939

40-
var body = await fs.readFileAsync(argDict.file);
40+
var body = await fs.readFileAsync(argDict.file, 'utf8');
4141
var result = await getIntrospectionResult(body, argDict.query);
4242
var out = await JSON.stringify(result, null, 2);
4343
console.log(out);

0 commit comments

Comments
 (0)