From 0e822d392f8f528169a0ab9519ac1068345cc045 Mon Sep 17 00:00:00 2001
From: Vladimir Razuvaev
Date: Fri, 29 Sep 2017 20:08:26 +0700
Subject: [PATCH] Deployed fb0ca60 with MkDocs version: 0.16.3
---
index.html | 2 +-
mkdocs/search_index.json | 4 +--
sitemap.xml | 40 ++++++++++++++--------------
type-system/type-language/index.html | 2 +-
4 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/index.html b/index.html
index 1a3bb09..b1f9a2f 100755
--- a/index.html
+++ b/index.html
@@ -280,5 +280,5 @@ existing PHP frameworks, add support for Relay, etc.
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
index 27d7a3d..78b825e 100755
--- a/mkdocs/search_index.json
+++ b/mkdocs/search_index.json
@@ -327,7 +327,7 @@
},
{
"location": "/type-system/type-language/",
- "text": "Defining your schema\n\n\nSince 0.9.0\n\n\nType language\n is a convenient way to define your schema,\nespecially with IDE autocompletion and syntax validation.\n\n\nHere is a simple schema defined in GraphQL type language (e.g. in a separate \nschema.graphql\n file):\n\n\nschema {\n query: Query\n mutation: Mutation\n}\n\ntype Query {\n greetings(input: HelloInput!): String!\n}\n\ninput HelloInput {\n firstName: String!\n lastName: String\n}\n\n\n\n\nIn order to create schema instance out of this file, use \n\nGraphQL\\Utils\\BuildSchema\n:\n\n\ntoArray(), true));\n} else {\n $document = AST::fromArray(require $cacheFilename); // fromArray() is a lazy operation as well\n}\n\n$typeConfigDecorator = function () {};\n$schema = BuildSchema::build($document, $typeConfigDecorator);",
+ "text": "Defining your schema\n\n\nSince 0.9.0\n\n\nType language\n is a convenient way to define your schema,\nespecially with IDE autocompletion and syntax validation.\n\n\nHere is a simple schema defined in GraphQL type language (e.g. in a separate \nschema.graphql\n file):\n\n\nschema {\n query: Query\n mutation: Mutation\n}\n\ntype Query {\n greetings(input: HelloInput!): String!\n}\n\ninput HelloInput {\n firstName: String!\n lastName: String\n}\n\n\n\n\nIn order to create schema instance out of this file, use \n\nGraphQL\\Utils\\BuildSchema\n:\n\n\ntoArray(), true));\n} else {\n $document = AST::fromArray(require $cacheFilename); // fromArray() is a lazy operation as well\n}\n\n$typeConfigDecorator = function () {};\n$schema = BuildSchema::build($document, $typeConfigDecorator);",
+ "text": "Since 0.10.0 Method build() produces a lazy schema \nautomatically, so it works efficiently even with very large schemas. But parsing type definition file on each request is suboptimal, so it is recommended to cache \nintermediate parsed representation of the schema for the production environment:
/
- 2017-09-05
+ 2017-09-29
daily
@@ -12,7 +12,7 @@
/getting-started/
- 2017-09-05
+ 2017-09-29
daily
@@ -20,7 +20,7 @@
/complementary-tools/
- 2017-09-05
+ 2017-09-29
daily
@@ -29,67 +29,67 @@
/type-system/
- 2017-09-05
+ 2017-09-29
daily
/type-system/object-types/
- 2017-09-05
+ 2017-09-29
daily
/type-system/scalar-types/
- 2017-09-05
+ 2017-09-29
daily
/type-system/enum-types/
- 2017-09-05
+ 2017-09-29
daily
/type-system/lists-and-nonnulls/
- 2017-09-05
+ 2017-09-29
daily
/type-system/interfaces/
- 2017-09-05
+ 2017-09-29
daily
/type-system/unions/
- 2017-09-05
+ 2017-09-29
daily
/type-system/input-types/
- 2017-09-05
+ 2017-09-29
daily
/type-system/directives/
- 2017-09-05
+ 2017-09-29
daily
/type-system/schema/
- 2017-09-05
+ 2017-09-29
daily
/type-system/type-language/
- 2017-09-05
+ 2017-09-29
daily
@@ -98,7 +98,7 @@
/executing-queries/
- 2017-09-05
+ 2017-09-29
daily
@@ -106,7 +106,7 @@
/data-fetching/
- 2017-09-05
+ 2017-09-29
daily
@@ -114,7 +114,7 @@
/error-handling/
- 2017-09-05
+ 2017-09-29
daily
@@ -122,7 +122,7 @@
/security/
- 2017-09-05
+ 2017-09-29
daily
@@ -130,7 +130,7 @@
/how-it-works/
- 2017-09-05
+ 2017-09-29
daily
@@ -138,7 +138,7 @@
/reference/
- 2017-09-05
+ 2017-09-29
daily
diff --git a/type-system/type-language/index.html b/type-system/type-language/index.html
index b498acc..edeb2fa 100755
--- a/type-system/type-language/index.html
+++ b/type-system/type-language/index.html
@@ -259,7 +259,7 @@ $cacheFilename = 'cached_schema.php';
if (!file_exists($cacheFilename)) {
$document = Parser::parse(file_get_contents('./schema.graphql'));
- file_put_contents($cacheFilename, "<?php\nreturn " . var_export($document->toArray(), true));
+ file_put_contents($cacheFilename, "<?php\nreturn " . var_export(AST::toArray($document), true));
} else {
$document = AST::fromArray(require $cacheFilename); // fromArray() is a lazy operation as well
}