1 Matching Annotations
  1. Sep 2020
    1. mongoose.model

      mongoose.model()

      When you call mongoose.model() on a schema, Mongoose compiles a model for you. The first argument is the singular name of the collection your model is for. Mongoose automatically looks for the plural, lowercased version of your model name. https://mongoosejs.com/docs/models.html#compiling