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' => [
|
||||
MyTypes::story(),
|
||||
MyTypes::user()
|
||||
];
|
||||
],
|
||||
'resolveType' => function($value) {
|
||||
if ($value->type === 'story') {
|
||||
return MyTypes::story();
|
||||
|
Loading…
x
Reference in New Issue
Block a user