mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-23 05:16: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' => [
|
'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();
|
||||||
|
Loading…
Reference in New Issue
Block a user