Update unions.md

replace semi colon with a comma as it would cause a syntax error
This commit is contained in:
Yannick Yeboue 2017-08-12 12:17:13 -04:00 committed by GitHub
parent fa17d6c461
commit 658816180a

View File

@ -11,7 +11,7 @@ $searchResultType = new UnionType([
'types' => [ 'types' => [
MyTypes::story(), MyTypes::story(),
MyTypes::user() MyTypes::user()
]; ],
'resolveType' => function($value) { 'resolveType' => function($value) {
if ($value->type === 'story') { if ($value->type === 'story') {
return MyTypes::story(); return MyTypes::story();