×
思维导图备注
Mongoose ODM v5.11.15 Documentation
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
Advanced Topics
来源:mongoosejs
浏览
302
扫码
分享
2021-02-07 08:55:57
Working with Dates
Custom Casting For Built-in Types
Custom SchemaTypes
当前内容版权归
mongoosejs
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
mongoosejs
.
上一篇:
下一篇:
Quick Start
Guides
Mongoose Core Concepts
Schemas
SchemaTypes
Connections
Models
Documents
Subdocuments
Queries
Validation
Middleware
Populate
Discriminators
Plugins
Faster Mongoose Queries With Lean
Query Casting
findOneAndUpdate
Getters and Setters
Virtuals
Advanced Topics
Working with Dates
Custom Casting For Built-in Types
Custom SchemaTypes
Integrations
Promises
AWS Lambda
Browser Library
GeoJSON
Transactions
MongoDB Driver Deprecation Warnings
Testing with Jest
SSL Connections
Migration Guides
Mongoose 4.x to 5.x
Mongoose 3.x to 4.x
API
Mongoose
Mongoose()
Mongoose.prototype.Aggregate()
Mongoose.prototype.CastError()
Mongoose.prototype.Collection()
Mongoose.prototype.Connection()
Mongoose.prototype.Date
Mongoose.prototype.Decimal128
Mongoose.prototype.Document()
Mongoose.prototype.DocumentProvider()
Mongoose.prototype.Error()
Mongoose.prototype.Mixed
Mongoose.prototype.Model()
Mongoose.prototype.Mongoose()
Mongoose.prototype.Number
Mongoose.prototype.ObjectId
Mongoose.prototype.Promise
Mongoose.prototype.PromiseProvider()
Mongoose.prototype.Query()
Mongoose.prototype.STATES
Mongoose.prototype.Schema()
Mongoose.prototype.SchemaType()
Mongoose.prototype.SchemaTypeOptions()
Mongoose.prototype.SchemaTypes
Mongoose.prototype.Types
Mongoose.prototype.VirtualType()
Mongoose.prototype.connect()
Mongoose.prototype.connection
Mongoose.prototype.connections
Mongoose.prototype.createConnection()
Mongoose.prototype.deleteModel()
Mongoose.prototype.disconnect()
Mongoose.prototype.driver
Mongoose.prototype.get()
Mongoose.prototype.isValidObjectId()
Mongoose.prototype.model()
Mongoose.prototype.modelNames()
Mongoose.prototype.mongo
Mongoose.prototype.mquery
Mongoose.prototype.now()
Mongoose.prototype.plugin()
Mongoose.prototype.pluralize()
Currently supported options are
Mongoose.prototype.startSession()
Mongoose.prototype.version
Schema
Schema()
Schema.Types
Schema.indexTypes
Schema.prototype.add()
Schema.prototype.childSchemas
Schema.prototype.clone()
Schema.prototype.eachPath()
Schema.prototype.get()
Schema.prototype.index()
Schema.prototype.indexes()
Schema.prototype.loadClass()
Schema.prototype.method()
Schema.prototype.obj
Schema.prototype.path()
Schema.prototype.pathType()
Schema.prototype.paths
Schema.prototype.pick()
Schema.prototype.plugin()
Schema.prototype.post()
Schema.prototype.pre()
Schema.prototype.queue()
Schema.prototype.remove()
Schema.prototype.requiredPaths()
Schema.prototype.set()
Schema.prototype.static()
Schema.prototype.virtual()
Schema.prototype.virtualpath()
Schema.reserved
Connection
Connection()
Connection.prototype.client
Connection.prototype.close()
Connection.prototype.collection()
Connection.prototype.collections
Connection.prototype.config
Connection.prototype.createCollection()
Connection.prototype.db
Connection.prototype.deleteModel()
Connection.prototype.dropCollection()
Connection.prototype.dropDatabase()
Connection.prototype.get()
Connection.prototype.getClient()
Connection.prototype.host
Connection.prototype.id
Connection.prototype.model()
Connection.prototype.modelNames()
Connection.prototype.models
Connection.prototype.name
Connection.prototype.openUri()
Connection.prototype.pass
Connection.prototype.plugin()
Connection.prototype.plugins
Connection.prototype.port
Connection.prototype.readyState
Supported options include
Connection.prototype.setClient()
Connection.prototype.startSession()
Connection.prototype.transaction()
Connection.prototype.useDb()
Connection.prototype.user
The ChangeStream object is an event emitter that emits the following events
Document
Document.prototype.$ignore()
Document.prototype.$isDefault()
Document.prototype.$isDeleted()
Document.prototype.$isEmpty()
Document.prototype.$locals
Document.prototype.$markValid()
Document.prototype.$op
Document.prototype.$parent()
Document.prototype.$session()
Document.prototype.$set()
Document.prototype.depopulate()
Document.prototype.directModifiedPaths()
Document.prototype.equals()
Document.prototype.errors
Document.prototype.execPopulate()
Document.prototype.get()
Document.prototype.getChanges()
Document.prototype.id
Document.prototype.init()
Document.prototype.inspect()
Document.prototype.invalidate()
Document.prototype.isDirectModified()
Document.prototype.isDirectSelected()
Document.prototype.isInit()
Document.prototype.isModified()
Document.prototype.isNew
Document.prototype.isSelected()
Document.prototype.markModified()
Document.prototype.modifiedPaths()
Document.prototype.overwrite()
Document.prototype.parent()
Document.prototype.populate()
Document.prototype.populated()
Document.prototype.replaceOne()
Document.prototype.save()
Document.prototype.schema
Document.prototype.set()
Document.prototype.toJSON()
Note that this is behavior is different for transforms defined in the schema
Document.prototype.toString()
Document.prototype.unmarkModified()
Document.prototype.update()
Document.prototype.updateOne()
Document.prototype.validate()
Document.prototype.validateSync()
Model
Model()
Model.aggregate()
Model.bulkWrite()
Model.cleanIndexes()
Model.count()
Model.countDocuments()
Model.create()
Model.createCollection()
Model.createIndexes()
Model.deleteMany()
Model.deleteOne()
Model.discriminator()
Model.distinct()
Model.ensureIndexes()
Model.estimatedDocumentCount()
Model.events
Model.exists()
Model.find()
Model.findById()
Model.findByIdAndDelete()
Model.findByIdAndRemove()
Model.findByIdAndUpdate()
Model.findOne()
Model.findOneAndDelete()
Model.findOneAndRemove()
Model.findOneAndReplace()
Model.findOneAndUpdate()
Model.geoSearch()
Model.hydrate()
Model.init()
Model.insertMany()
Model.inspect()
Model.listIndexes()
Model.mapReduce()
Model.populate()
Model.prototype.$where
Model.prototype.$where()
Model.prototype.base
Model.prototype.baseModelName
Model.prototype.collection
Model.prototype.db
Model.prototype.delete
Model.prototype.deleteOne()
Model.prototype.discriminators
Model.prototype.model()
Model.prototype.modelName
Model.prototype.remove()
Model.prototype.save()
Model.prototype.schema
Model.remove()
Model.replaceOne()
Model.startSession()
Model.syncIndexes()
Model.translateAliases()
Model.update()
Model.updateMany()
Model.updateOne()
Model.validate()
The ChangeStream object is an event emitter that emits the following events
Model.where()
increment()
Query
Query()
Query.prototype.$where()
Query.prototype.Symbol.asyncIterator()
Query.prototype.all()
Query.prototype.and()
Query.prototype.batchSize()
Query.prototype.box()
Query.prototype.cast()
Query.prototype.catch()
Query.prototype.center()
Query.prototype.centerSphere()
Query.prototype.circle()
Query.prototype.collation()
Query.prototype.comment()
Query.prototype.count()
Query.prototype.countDocuments()
Query.prototype.cursor()
Query.prototype.deleteMany()
Query.prototype.deleteOne()
Query.prototype.distinct()
Query.prototype.elemMatch()
Query.prototype.equals()
Query.prototype.error()
Query.prototype.estimatedDocumentCount()
Query.prototype.exec()
Query.prototype.exists()
Query.prototype.explain()
Query.prototype.find()
Query.prototype.findOne()
Query.prototype.findOneAndDelete()
Query.prototype.findOneAndRemove()
Query.prototype.findOneAndReplace()
Query.prototype.findOneAndUpdate()
Query.prototype.geometry()
Query.prototype.get()
Query.prototype.getFilter()
Query.prototype.getOptions()
Query.prototype.getPopulatedPaths()
Query.prototype.getQuery()
Query.prototype.getUpdate()
Query.prototype.gt()
Query.prototype.gte()
Query.prototype.hint()
Query.prototype.in()
Query.prototype.intersects()
This option is only valid for operations that write to the database
Query.prototype.lean()
Query.prototype.limit()
Query.prototype.lt()
Query.prototype.lte()
Query.prototype.map()
Query.prototype.maxDistance()
Query.prototype.maxScan()
Query.prototype.maxTimeMS()
Query.prototype.maxscan()
Query.prototype.merge()
Query.prototype.mod()
Query.prototype.mongooseOptions()
Query.prototype.ne()
Query.prototype.near()
Query.prototype.nearSphere()
Query.prototype.nin()
Query.prototype.nor()
Query.prototype.or()
Query.prototype.orFail()
Query.prototype.polygon()
Query.prototype.populate()
Query.prototype.projection()
Query.prototype.read()
Query.prototype.readConcern()
Query.prototype.regex()
Query.prototype.remove()
Query.prototype.replaceOne()
Query.prototype.select()
Query.prototype.selected()
Query.prototype.selectedExclusively()
Query.prototype.selectedInclusively()
Query.prototype.session()
Query.prototype.set()
The following options are for all operations
Query.prototype.setQuery()
Query.prototype.setUpdate()
Query.prototype.size()
Query.prototype.skip()
Query.prototype.slaveOk()
Query.prototype.slice()
Query.prototype.snapshot()
Query.prototype.sort()
Query.prototype.tailable()
Query.prototype.then()
Query.prototype.toConstructor()
Query.prototype.update()
Query.prototype.updateMany()
Query.prototype.updateOne()
Query.prototype.use$geoWithin
This option is only valid for operations that write to the database
Query.prototype.where()
Query.prototype.within()
This option is only valid for operations that write to the database
QueryCursor
Aggregate
Aggregate()
Aggregate.prototype.Symbol.asyncIterator()
Aggregate.prototype.addCursorFlag
Aggregate.prototype.addFields()
Aggregate.prototype.allowDiskUse()
Aggregate.prototype.append()
Aggregate.prototype.catch()
Aggregate.prototype.collation()
Aggregate.prototype.count()
Aggregate.prototype.cursor()
Aggregate.prototype.exec()
Aggregate.prototype.explain()
Aggregate.prototype.facet()
Aggregate.prototype.graphLookup()
Aggregate.prototype.group()
Aggregate.prototype.hint()
Aggregate.prototype.limit()
Aggregate.prototype.lookup()
Aggregate.prototype.match()
Aggregate.prototype.model()
Aggregate.prototype.near()
Aggregate.prototype.option()
Supported options are
Aggregate.prototype.pipeline()
Aggregate.prototype.project()
Aggregate.prototype.read()
Aggregate.prototype.readConcern()
Aggregate.prototype.redact()
Aggregate.prototype.replaceRoot()
Aggregate.prototype.sample()
Aggregate.prototype.search()
Aggregate.prototype.session()
Aggregate.prototype.skip()
Aggregate.prototype.sort()
Aggregate.prototype.sortByCount()
Aggregate.prototype.then()
Aggregate.prototype.unwind()
AggregationCursor
Schematype
SchemaType()
SchemaType.cast()
SchemaType.cast()
SchemaType.checkRequired()
SchemaType.get()
SchemaType.prototype.default()
SchemaType.prototype.get()
SchemaType.prototype.immutable()
SchemaType.prototype.index()
SchemaType.prototype.ref()
SchemaType.prototype.required()
SchemaType.prototype.select()
SchemaType.prototype.set()
SchemaType.prototype.sparse()
SchemaType.prototype.text()
Example:
SchemaType.prototype.transform()
SchemaType.prototype.unique()
SchemaType.prototype.validate()
SchemaType.set()
Virtualtype
Error
Array
DocumentArrayPath
SingleNestedPath
Version Compatibility
FAQ
Further Reading
For Enterprise
Built with Mongoose
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度