mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
Update unions.md
replace semi colon with a comma as it would cause a syntax error
This commit is contained in:
parent
fa17d6c461
commit
658816180a
@ -11,7 +11,7 @@ $searchResultType = new UnionType([
|
||||
'types' => [
|
||||
MyTypes::story(),
|
||||
MyTypes::user()
|
||||
];
|
||||
],
|
||||
'resolveType' => function($value) {
|
||||
if ($value->type === 'story') {
|
||||
return MyTypes::story();
|
||||
|
Loading…
Reference in New Issue
Block a user