书栈网 · BookStack 本次搜索耗时 0.040 秒,为您找到 593 个相关结果.
  • schemas

    Schemas Defining your schema Creating a model Instance methods Statics Query Helpers Indexes Virtuals Aliases Options option: autoIndex option: bufferCommands option: ca...
  • FAQ

    FAQ FAQ Q . Why don’t my changes to arrays get saved when I update an element directly? doc . array [ 3 ] = 'changed' ; doc . save (); A . Mongoose doesn’t create get...
  • Working with Dates

    Working With Dates Validators Querying Casting Edge Cases Timezones Working With Dates Here’s how you declare a path of type Date with a Mongoose schema: const mongoose ...
  • Documents

    Documents Documents vs Models Retrieving Updating Using save() Updating Using Queries Validating Overwriting Next Up Documents Sponsor #native_company# — #native_desc# ...
  • Quick Start

    Getting Started Congratulations Getting Started First be sure you have MongoDB and Node.js installed. Next install Mongoose from the command line using npm : $ npm install...
  • schematypes

    SchemaTypes Example Usage notes: Dates Mixed ObjectIds Arrays Creating Custom Types Next Up SchemaTypes SchemaTypes handle definition of path defaults , validation , ge...
  • Models

    Models Compiling your first model Constructing Documents Querying Deleting Updating Change Streams Yet more Next Up Models Models are fancy constructors compiled from S...
  • TypeScript

    TypeScript Support Creating Your First Document Using extends Document Using Custom Bindings Next Up TypeScript Support Mongoose introduced officially supported TypeScript ...
  • 3.6 release notes

    Mongoose 3.6 Release Notes Population Added Model.populate(docs, opts, cb) Query.populate now accepts an options object Added document.populate(opts | path, [cb]) Added document...
  • Promises

    Promises Built-in Promises Queries are not promises Queries are thenable Should You Use exec() With await ? Plugging in your own Promises Library Promises Built-in Prom...