diff --git a/docs/type-system/unions.md b/docs/type-system/unions.md index 83e2fdb..9b5dcae 100644 --- a/docs/type-system/unions.md +++ b/docs/type-system/unions.md @@ -11,7 +11,7 @@ $searchResultType = new UnionType([ 'types' => [ MyTypes::story(), MyTypes::user() - ]; + ], 'resolveType' => function($value) { if ($value->type === 'story') { return MyTypes::story();