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.
1 parent fa17d6c commit 6588161Copy full SHA for 6588161
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