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

JS packages: A Survey Part I

Site Tracker App with HMS Toolkit

Building with Clay: Getting started with the Ceramic Network

HTTPS for localhost

JavaScript common interview questions

Slang and Node-RED, a Comparison

Coding @Austin Coding Academy

React Context

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

How to Migrate a Javascript Codebase to Typescript

require() vs import(): Important features you should be aware of!

Dynamic Input Width React Component

Understanding Local State with React Hooks