This video is available to students only

How to Type Data from GraphQL With TypeScript Generics

Although the custom server fetch() function we've established in the last lesson works, the data being returned isn't appropriately typed. In this lesson, we'll take advantage of TypeScript generics to ensure we get queried data from our server fetch() function with the appropriate type.

Start a new discussion. All notification go to the author.