DEV Community

Discussion on: 5 Minute Tutorial: Easily Get Base Types with AWS Amplify GraphQL Codegen for TypeScript

Collapse
rpainter8west profile image
Russ Painter • Edited on

I found I had to also exclude "undefined".

export type DomainModel = Omit<Exclude<APIt.GetDomainQuery["getDomain"], null | undefined>, "__typename">;
Enter fullscreen mode Exit fullscreen mode