Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,512 in github.com/Automattic/mongoose
⨍
Functions
1,512
◇
Types & classes
795
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:1293
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:1168
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:13376
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:607
Function
autoTypedSchema
()
test/types/schema.create.test.ts:375
Function
autoTypedVirtuals
()
test/types/virtuals.test.ts:90
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:718
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:674
Method
byName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:118
Function
byUserName
(userName)
test/query.test.js:3790
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:14874
Function
cast$all
(val, context)
lib/schema/array.js:589
Function
cast$elemMatch
(val, context)
lib/schema/documentArray.js:652
Function
cast$elemMatch
(val, context)
lib/schema/array.js:610
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:1195
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
compare
(a, b)
test/model.populate.test.js:5033
Function
compareBuffers
(a, b)
test/model.findOneAndUpdate.test.js:801
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:22
Method
constructor
(changeStreamPromise, pipeline, options)
lib/cursor/changeStream.js:21
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
Method
constructor
* Map SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} pare
lib/schema/map.js:26
Method
constructor
* Create a Union schema type. * * @param {string} key the path in the schema for this schema type * @param {object} options SchemaType-specif
lib/schema/union.js:25
Method
constructor
()
lib/error/browserMissingSchema.js:15
Method
constructor
(path, msg, immutable)
lib/error/strict.js:22
Method
constructor
(properties, doc)
lib/error/validator.js:19
Method
constructor
(message, errorsMap)
lib/error/createCollectionsError.js:15
Method
constructor
(instance)
lib/error/validation.js:22
Method
constructor
(type, value, path, reason, schemaType)
lib/error/cast.js:20
Method
constructor
(message, errorsMap)
lib/error/syncIndexes.js:19
Method
constructor
(doc, currentVersion, modifiedPaths)
lib/error/version.js:20
Method
constructor
(doc)
lib/error/parallelSave.js:19
Method
constructor
(name)
lib/error/overwriteModel.js:18
Method
constructor
(validationErrors, results, rawResult, operation)
lib/error/bulkWriteError.js:19
Method
constructor
()
lib/error/setOptionError.js:20
Method
constructor
* Error for the "errors" array in "SetOptionError" with consistent message * @param {string} key
lib/error/setOptionError.js:92
Method
constructor
(filter, model, numAffected, result)
lib/error/notFound.js:17
Method
constructor
(doc)
lib/error/parallelValidate.js:19
Method
constructor
* @param {string} connectionString
lib/error/eachAsyncMultiError.js:22
Method
constructor
(value, paramName, fnName)
lib/error/objectParameter.js:20
← previous
next →
701–800 of 1,512, ranked by callers