Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Vue Fullstack > Lesson 18

Adding model validation

Mongoose allows you to add additional properties to a model that define how it can be saved or updated.

Let's go ahead and create a second model that we'll be using in the API: a user.

We'll pop that directly underneath the Item model definition. Let's create a variable User and again call the model method of the mongoose object.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom