Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,537 in github.com/Automattic/mongoose
⨍
Functions
1,537
◇
Types & classes
799
Function
TestDocument
* Test Document constructor.
test/schema.test.js:29
Function
TestDocument
* Test Document constructor.
test/document.test.js:31
Function
Timestamps
()
test/types/inferrawdoctype.test.ts:82
Function
To
()
test/utils.test.js:247
Function
VirtualType
* VirtualType constructor * * This is what mongoose uses to define virtual attributes via `Schema.prototype.virtual`. * * #### Example: * *
lib/virtualType.js:34
Function
_11532
()
test/types/populate.test.ts:227
Function
_11767
()
test/types/lean.test.ts:83
Function
_Dummy
()
test/types.document.test.js:34
Function
_Subdocument
()
test/types.document.test.js:41
Function
_bulkWrite
(ops, options)
lib/model.js:3500
Function
_cast
* Overrides MongooseArray#cast * * @method _cast * @api private * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:60
Function
_cast
* Casts a member based on this arrays schema. * * @param {any} value * @return {any} the casted value * @method _cast * @api private
lib/types/array/methods/index.js:256
Function
_embedded
(value, path, parent)
lib/schema/subdocument.js:78
Function
_execPopulateQuery
(mod, match, select)
lib/model.js:4823
Function
_insertMany
(arr, options)
lib/model.js:3102
Function
_mapCast
* Internal helper for .map() * * @api private * @return {number} * @method _mapCast * @memberOf MongooseArray
lib/types/array/methods/index.js:300
Function
_markModified
(elem, embeddedPath)
lib/types/documentArray/methods/index.js:480
Function
_markModified
* Marks this array as modified. * * If it bubbles up from an embedded document change, then it takes the following arguments (otherwise, takes 0
lib/types/array/methods/index.js:316
Function
_native_go
(json)
docs/js/native.js:58
Function
_onNext
(error, doc)
lib/cursor/queryCursor.js:598
Function
_populateBatch
()
lib/cursor/queryCursor.js:625
Function
_registerAtomic
* Register an atomic operation with the parent. * * @param {Array} op operation * @param {any} val * @method _registerAtomic * @api pri
lib/types/array/methods/index.js:347
Function
_rerunClose
()
lib/connection.js:1294
Function
_setTimestampsOnUpdate
()
lib/helpers/timestamps/setupTimestamps.js:105
Function
_step
()
lib/helpers/cursor/eachAsync.js:208
Function
_transformForAsyncIterator
(doc)
lib/cursor/aggregationCursor.js:451
Method
_update
()
test/types/models.test.ts:340
Function
_validateArgs
(uri, options, callback)
lib/connection.js:1169
Function
a
()
test/model.updateOne.test.js:226
Method
addError
* add message * @param {string} key * @param {string|Error} error * @api private
lib/error/setOptionError.js:47
Method
addListener
(event, handler)
lib/cursor/changeStream.js:177
Function
addSufix
(name)
test/document.test.js:13275
Function
addToSet
* Wraps [`MongooseArray#addToSet`](https://mongoosejs.com/docs/api/array.html#MongooseArray.prototype.addToSet()) * with proper change tracking.
lib/types/documentArray/methods/index.js:227
Function
addToSet
* Adds values to the array if not already present. * * #### Example: * * console.log(doc.array) // [2,3,4] * const added = doc.
lib/types/array/methods/index.js:449
Function
aggregateOptionsTest
()
test/types/models.test.ts:705
Function
allowNullFalseInferredTypes
()
test/types/schema.create.test.ts:2039
Function
allowNullFalseInferredTypes
()
test/types/schema.test.ts:2370
Function
applyWhere
()
lib/plugins/sharding.js:44
Function
asyncEnd
(ctx)
test/tracing.test.js:45
Function
asyncStart
(ctx)
test/tracing.test.js:44
Method
autoEncryptionType
()
test/encryptedSchema.test.js:274
Function
autoInferred
()
test/types/schema.test.ts:2053
Function
autoInferred
()
test/types/document.test.ts:675
Function
autoInferredNestedMaps
()
test/types/schema.test.ts:2082
Function
autoInferredWithCustomVersionKey
()
test/types/document.test.ts:710
Function
autoTypedDocument
()
test/types/document.test.ts:188
Function
autoTypedDocumentConnection
()
test/types/document.test.ts:201
Function
autoTypedQuery
()
test/types/queries.test.ts:728
Function
autoTypedSchema
()
test/types/schema.create.test.ts:375
Function
autoTypedVirtuals
()
test/types/virtuals.test.ts:101
Function
bar
(SomeModel: Model<ITest & Document>)
test/types/models.test.ts:168
Method
bar
()
test/model.test.js:9239
Function
baseConnectionAndCollection
()
test/types/base.test.ts:127
Function
basicLoadClassPattern
()
test/types/loadclass.test.ts:5
Function
bulkWrite
()
test/types/models.test.ts:359
Function
bulkWriteAddToSet
()
test/types/models.test.ts:382
Function
byName
(this: UserModelQuery, name: string)
test/types/models.test.ts:573
Function
byName
(name: string)
test/types/queries.test.ts:839
Function
byName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:145
Method
byName
(this: UserModelQuery, name: string)
test/types/models.test.ts:546
Method
byName
(name: string)
test/types/queries.test.ts:795
Method
byName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:118
Function
byUserName
(userName)
test/query.test.js:3763
Function
byUserName
(userName)
test/types/schema.create.test.ts:558
Function
byUserName
(userName)
test/types/schema.test.ts:559
Function
capitalizeFirstLetter
(v)
test/docs/lean.test.js:101
Method
cast
* Casts to Map * * @param {object} value * @param {object} model this value is optional * @api private
lib/schema/map.js:41
Method
cast
(val)
test/driver.test.js:45
Method
cast
(value)
test/document.test.js:14773
Function
cast$all
(val, context)
lib/schema/array.js:593
Function
cast$elemMatch
(val, context)
lib/schema/documentArray.js:660
Function
cast$elemMatch
(val, context)
lib/schema/array.js:614
Function
cast$geoIntersects
(val)
lib/schema/operators/geospatial.js:90
Function
cast$near
(val)
lib/schema/operators/geospatial.js:18
Function
cast$within
(val)
lib/schema/operators/geospatial.js:57
Function
castToNumber
(val)
lib/schema/operators/helpers.js:20
Function
checkDoc
(doc)
test/aggregate.test.js:1204
Function
checkDoc
(doc)
test/query.cursor.test.js:331
Function
checkIfLength2
(v)
test/schematype.test.js:237
Function
checkIfString
(v)
test/schematype.test.js:234
Function
clearAtomics
* Clears all pending atomic operations. Called by Mongoose after save(). * * @return {void} * @method clearAtomics * @memberOf MongooseArr
lib/types/array/methods/index.js:105
Method
clone
* Creates a copy of this map schema type. * * @api private
lib/schema/map.js:85
Function
closePanel
()
docs/js/ask-ai.js:157
Method
collection
()
test/driver.test.js:82
Function
compareBuffer
* MongoDB stores a subtype with binary data, so equal bytes with different * subtypes are different values. * @api private
lib/types/array/methods/index.js:1014
Function
compareBuffers
(a, b)
test/model.findOneAndUpdate.test.js:781
Function
compareDate
* Compare dates by timestamp like `addToSet()` does, so `pull()` works on date arrays. * @api private
lib/types/array/methods/index.js:1004
Function
compareDecimal128
* Match Decimal128s only against other Decimal128s, by numeric value, like * MongoDB does: '1.50' matches '1.5', '1E+3' matches '1000', '-0' matches
lib/types/array/methods/index.js:1040
Function
compareDouble
* Match Doubles only against other Doubles. MongoDB considers NaN equal to NaN. * @api private
lib/types/array/methods/index.js:1023
Function
connectionStates
()
test/types/base.test.ts:36
Method
constructor
(subdocSnapshot, activePaths, version)
lib/modifiedPathsSnapshot.js:4
Method
constructor
(v, path, doc, schemaType)
lib/types/map.js:23
Method
constructor
(changeStreamPromise, pipeline, options)
lib/cursor/changeStream.js:21
Method
constructor
(schema)
lib/defaults/schemaDefaultsCache.js:27
Method
constructor
()
lib/helpers/pathTrie.js:7
Method
constructor
* @param {string[]} [paths] paths to add to the trie
lib/helpers/pathTrie.js:29
Method
constructor
(obj)
lib/options/virtualOptions.js:6
Method
constructor
(obj)
lib/options/saveOptions.js:6
Method
constructor
(obj)
lib/options/populateOptions.js:6
Method
constructor
(obj)
lib/options/schemaTypeOptions.js:18
← previous
next →
701–800 of 1,537, ranked by callers