We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb40e11 commit fb0ca60Copy full SHA for fb0ca60
docs/type-system/type-language.md
@@ -82,7 +82,7 @@ $cacheFilename = 'cached_schema.php';
82
83
if (!file_exists($cacheFilename)) {
84
$document = Parser::parse(file_get_contents('./schema.graphql'));
85
- file_put_contents($cacheFilename, "<?php\nreturn " . var_export($document->toArray(), true));
+ file_put_contents($cacheFilename, "<?php\nreturn " . var_export(AST::toArray($document), true));
86
} else {
87
$document = AST::fromArray(require $cacheFilename); // fromArray() is a lazy operation as well
88
}
0 commit comments