Strongly typed models with Mongoose and TypeScript

Mongoose provides a layer of abstraction over MongoDB that makes validation, casting & business logic boilerplate more enjoyable. Creating your models with a TypeScript interface extends these benefits by creating a strongly typed model that increases developer confidence, development speed and reduces bugs.

--

--

--

I am a full stack JavaScript developer, living in Melbourne, Australia. My preferred stack is Mongoose, TypeScript, Node.js, React & GraphQL.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

D3 and React — similarities and differences

JavaScript UseCases

Bring on the Big Guns: JavaScript Higher-Order Methods

@Order Annotation in Spring Boot

Drop in Copy to Clipboard function

My Journey into Web Development Pt. 1

adding google sign-in to your webapp — using the js library

The Final Lap

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tom Nagle

Tom Nagle

I am a full stack JavaScript developer, living in Melbourne, Australia. My preferred stack is Mongoose, TypeScript, Node.js, React & GraphQL.

More from Medium

NodeJS & HTTP Error 431

Creating Nodejs Express Project with Typescript

Creating either CommonJS or ES6 modules for Node.js packages using Typescript

NodeJS with ExpressJS and TypeScript part 2.