Skip to content
Snippets Groups Projects

Add .graphql export

1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
@@ -49,6 +49,16 @@ class GraphqlExportCommands extends DrushCommands {
}
try {
if (!empty($setting['graphql'])) {
$data = $this->exportService->printSchema($server);
$filename = $this->writeFile($setting['graphql'], $data, $server->id() . '.graphql');
$this->logger()->success(dt('GraphQL Export: Exported schema @id (@filename)', [
'@id' => $server->id(),
'@filename' => $filename,
]));
}
if (!empty($setting['graphqls'])) {
$data = $this->exportService->printSchema($server);
$filename = $this->writeFile($setting['graphqls'], $data, $server->id() . '.graphqls');
Loading