This repository was archived by the owner on Feb 10, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function fields()
63
63
],
64
64
];
65
65
}
66
-
66
+
67
67
public function resolvePostsField($root, $args)
68
68
{
69
69
if (isset($args['id'])) {
@@ -106,7 +106,7 @@ Register the Enum in the 'types' array of the graphql.php config file:
106
106
107
107
``` php
108
108
// config/graphql.php
109
- 'types' => [TestEnum' => TestEnumType::class ];
109
+ 'types' => [' TestEnum' => TestEnumType::class ];
110
110
```
111
111
112
112
Then use it like:
@@ -144,7 +144,7 @@ class CharacterInterface extends InterfaceType {
144
144
'name' => 'Character',
145
145
'description' => 'Character interface.',
146
146
];
147
-
147
+
148
148
public function fields() {
149
149
return [
150
150
'id' => [
@@ -157,7 +157,7 @@ class CharacterInterface extends InterfaceType {
157
157
],
158
158
];
159
159
}
160
-
160
+
161
161
public function resolveType($root) {
162
162
// Use the resolveType to resolve the Type which is implemented trough this interface
163
163
$type = $root['type'];
@@ -457,4 +457,4 @@ For example, if you use homestead:
457
457
458
458
```
459
459
http://homestead.app/graphql?query=query+FetchUsers{users{uuid, email, team{name}}}
460
- ```
460
+ ```
You can’t perform that action at this time.
0 commit comments