Course lesson
Merge Types using Intersection Operator
There might be times when you want to extend a type, i.e., to add new fields to it. Instead of copying the types and creating duplicates, the better way to do that is to use the intersection operator &. In this quick lesson, you will learn what it does and...
- Duration
- 1 min
- Access
- Pro
- Transcript
- Available
There might be times when you want to extend a type, i.e., to add new fields to it. Instead of copying the types and creating duplicates, the better way to do that is to use the intersection operator &. In this quick lesson, you will learn what it does and how you can use it to reduce duplicate types.