Skip to content

Commit c150367

Browse files
authored
Merge pull request #126 from mcg-web/prettify-json-schema-dump
Prettify json schema dump
2 parents 7a4796d + f038ea2 commit c150367

File tree

2 files changed

+1276
-2
lines changed

2 files changed

+1276
-2
lines changed

Command/GraphQLDumpSchemaCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private function createFileContent(Executor $requestExecutor, $format, $schemaNa
7979
->execute($request, [], $schemaName)
8080
->toArray();
8181

82-
$content = json_encode($result['data']);
82+
$content = json_encode($result['data'], \JSON_PRETTY_PRINT);
8383
break;
8484

8585
case 'graphqls':

0 commit comments

Comments
 (0)