From e5e8047b68f91c96a2b3464710e93b45e033029f Mon Sep 17 00:00:00 2001 From: gosho-kazuya Date: Thu, 26 Jul 2018 16:43:52 +0900 Subject: [PATCH 1/2] fix typo --- docs/advanced.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/advanced.md b/docs/advanced.md index 8a103742..3fb31d95 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -63,7 +63,7 @@ public function fields() ], ]; } - + public function resolvePostsField($root, $args) { if (isset($args['id'])) { @@ -106,7 +106,7 @@ Register the Enum in the 'types' array of the graphql.php config file: ```php // config/graphql.php -'types' => [TestEnum' => TestEnumType::class ]; +'types' => ['TestEnum' => TestEnumType::class ]; ``` Then use it like: @@ -144,7 +144,7 @@ class CharacterInterface extends InterfaceType { 'name' => 'Character', 'description' => 'Character interface.', ]; - + public function fields() { return [ 'id' => [ @@ -157,7 +157,7 @@ class CharacterInterface extends InterfaceType { ], ]; } - + public function resolveType($root) { // Use the resolveType to resolve the Type which is implemented trough this interface $type = $root['type']; @@ -457,4 +457,4 @@ For example, if you use homestead: ``` http://homestead.app/graphql?query=query+FetchUsers{users{uuid, email, team{name}}} -``` \ No newline at end of file +``` From 24d693d35c45c182abaaa7ce23a85e6a21d995b3 Mon Sep 17 00:00:00 2001 From: gosho-kazuya Date: Thu, 26 Jul 2018 21:40:12 +0900 Subject: [PATCH 2/2] remove whitespace --- docs/advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced.md b/docs/advanced.md index 3fb31d95..70aad5ea 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -106,7 +106,7 @@ Register the Enum in the 'types' array of the graphql.php config file: ```php // config/graphql.php -'types' => ['TestEnum' => TestEnumType::class ]; +'types' => ['TestEnum' => TestEnumType::class]; ``` Then use it like: