Simplify type

Flattens an intersection into a single object type, so editor hovers show the resolved fields of a query or mutation result.

type Simplify<T> = { [K in keyof T]: T[K] } & {}