Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

Fix typo in advanced document #363

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function fields()
],
];
}

public function resolvePostsField($root, $args)
{
if (isset($args['id'])) {
Expand Down Expand Up @@ -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];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

following @mfn removed whitespace too

```

Then use it like:
Expand Down Expand Up @@ -144,7 +144,7 @@ class CharacterInterface extends InterfaceType {
'name' => 'Character',
'description' => 'Character interface.',
];

public function fields() {
return [
'id' => [
Expand All @@ -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'];
Expand Down Expand Up @@ -457,4 +457,4 @@ For example, if you use homestead:

```
http://homestead.app/graphql?query=query+FetchUsers{users{uuid, email, team{name}}}
```
```