mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 15:59:24 +03:00
commit
9d150c7702
@ -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…
x
Reference in New Issue
Block a user