Skip to content

Commit 3fca935

Browse files
Dilukajohnbiundo
andauthored
Update content/graphql/mapped-types.md
Co-Authored-By: John Biundo <[email protected]>
1 parent d66e658 commit 3fca935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/mapped-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class UpdateUserInput extends IntersectionType(CreateUserInput, Additiona
132132

133133
> info **Hint** The `IntersectionType()` function is imported from the `@nestjs/graphql` package.
134134
135-
The `IntersectionType()` function takes an optional third argument that is a reference to the decorator factory of the type being extended. It will use the first one's decorator, if we didn't pass `InputType` as the third argument. If you want to extend a class decorated with `@ObjectType`, pass `ObjectType` as the third argument. For example:
135+
The `IntersectionType()` function takes an optional third argument that is a reference to the decorator factory of the type being extended. If you don't pass a type as the third argument, it will use the first argument's decorator factory type. If you want to extend a class decorated with `@ObjectType`, pass `ObjectType` as the third argument. For example:
136136

137137
```typescript
138138
@InputType()

0 commit comments

Comments
 (0)