How Add TypeScript Types to a MongoDB Database

Though we've been able to make our database connection from the server, we haven't appropriately specified the type of data that can be returned from our database collections. In this lesson, we introduce and take advantage of generics to define the type of data that can be returned from our listings collection.

 

Loading...

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

Loading...