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

    Built-in Promises Mongoose async operations, like .save() and queries, return Promises/A+ conformant promises . This means that you can do things like MyModel.findOn...
  • Query.prototype.lean()

    Query.prototype.lean() Parameters Returns: Example: Query.prototype.lean() Parameters bool «Boolean|Object» defaults to true Returns: «Query» this Sets the lean opt...
  • CRUD(增删改查)

    2339 2018-05-23 《mongoose入门》
    CRUD(增删改查) 增加(Create) 读取(Retrieve) find:根据条件查询,返回的是数组 findOne:根据条件查询,返回的是一条数据对象 更新(Update) findByIdAndUpdate:根据ID查找并更新 findOneAndUpdate:根据查询条件查找并更新 删除(Delete) 执行测试 调试模式 ...
  • Transactions

    Transactions in Mongoose Getting Started with Transactions With Mongoose Documents and save() With the Aggregation Framework Advanced Usage Transactions in Mongoose Transa...
  • Subdocuments

    Subdocuments What is a Subdocument? Subdocuments versus Nested Paths Subdocument Defaults Finding a Subdocument Adding Subdocs to Arrays Removing Subdocs Parents of Subdocs A...
  • GeoJSON

    Using GeoJSON Point Schema Polygon Schema Geospatial Queries with Mongoose Geospatial Indexes Using GeoJSON Sponsor #native_company# — #native_desc# GeoJSON is a format ...
  • Schemas

    Schemas Defining your schema Creating a model Ids Instance methods Statics Query Helpers Indexes Virtuals Aliases Options option: autoIndex option: autoCreate option: b...
  • Mongo

    1414 2020-06-13 《Nest.js v7.0 Document》
    Mongo Model injection Connection Multiple databases Hooks (middleware) Plugins Testing Learn the right way! Async configuration Example Mongo Nest supports two methods...
  • SchemaTypes

    SchemaTypes What is a SchemaType? Example The `type` Key SchemaType Options All Schema Types Indexes String Number Date ObjectId Usage Notes String Number Dates Buffe...