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.
2 parents fa17d6c + 6588161 commit 9d150c7Copy full SHA for 9d150c7
docs/type-system/unions.md
@@ -11,7 +11,7 @@ $searchResultType = new UnionType([
11
'types' => [
12
MyTypes::story(),
13
MyTypes::user()
14
- ];
+ ],
15
'resolveType' => function($value) {
16
if ($value->type === 'story') {
17
return MyTypes::story();
0 commit comments