Skip to content

Commit 8825ce2

Browse files
Update content/graphql/unions.md
1 parent f6abe64 commit 8825ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/unions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class Book {
114114
export type ResultUnion = Author | Book;
115115
```
116116
117-
Unions require an extra `__resolveType` field in the resolver map to determine which type the union should resolve to. Let's create a `ResultUnionResolver` class and define the `__resolveType` method. Note that the `ResultUnionResolver` class has to be registered in the required module:
117+
Unions require an extra `__resolveType` field in the resolver map to determine which type the union should resolve to. Also, note that the `ResultUnionResolver` class has to be registered as a provider in any module. Let's create a `ResultUnionResolver` class and define the `__resolveType` method.
118118
119119
```typescript
120120
@Resolver('ResultUnion')

0 commit comments

Comments
 (0)