MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,537 in github.com/Automattic/mongoose

FunctionTestDocument
* Test Document constructor.
test/schema.test.js:29
FunctionTestDocument
* Test Document constructor.
test/document.test.js:31
FunctionTimestamps
()
test/types/inferrawdoctype.test.ts:82
FunctionTo
()
test/utils.test.js:247
FunctionVirtualType
* 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
Functiona
()
test/model.updateOne.test.js:226
MethodaddError
* add message * @param {string} key * @param {string|Error} error * @api private
lib/error/setOptionError.js:47
MethodaddListener
(event, handler)
lib/cursor/changeStream.js:177
FunctionaddSufix
(name)
test/document.test.js:13275
FunctionaddToSet
* Wraps [`MongooseArray#addToSet`](https://mongoosejs.com/docs/api/array.html#MongooseArray.prototype.addToSet()) * with proper change tracking.
lib/types/documentArray/methods/index.js:227
FunctionaddToSet
* 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
FunctionaggregateOptionsTest
()
test/types/models.test.ts:705
FunctionallowNullFalseInferredTypes
()
test/types/schema.create.test.ts:2039
FunctionallowNullFalseInferredTypes
()
test/types/schema.test.ts:2370
FunctionapplyWhere
()
lib/plugins/sharding.js:44
FunctionasyncEnd
(ctx)
test/tracing.test.js:45
FunctionasyncStart
(ctx)
test/tracing.test.js:44
MethodautoEncryptionType
()
test/encryptedSchema.test.js:274
FunctionautoInferred
()
test/types/schema.test.ts:2053
FunctionautoInferred
()
test/types/document.test.ts:675
FunctionautoInferredNestedMaps
()
test/types/schema.test.ts:2082
FunctionautoInferredWithCustomVersionKey
()
test/types/document.test.ts:710
FunctionautoTypedDocument
()
test/types/document.test.ts:188
FunctionautoTypedDocumentConnection
()
test/types/document.test.ts:201
FunctionautoTypedQuery
()
test/types/queries.test.ts:728
FunctionautoTypedSchema
()
test/types/schema.create.test.ts:375
FunctionautoTypedVirtuals
()
test/types/virtuals.test.ts:101
Functionbar
(SomeModel: Model<ITest & Document>)
test/types/models.test.ts:168
Methodbar
()
test/model.test.js:9239
FunctionbaseConnectionAndCollection
()
test/types/base.test.ts:127
FunctionbasicLoadClassPattern
()
test/types/loadclass.test.ts:5
FunctionbulkWrite
()
test/types/models.test.ts:359
FunctionbulkWriteAddToSet
()
test/types/models.test.ts:382
FunctionbyName
(this: UserModelQuery, name: string)
test/types/models.test.ts:573
FunctionbyName
(name: string)
test/types/queries.test.ts:839
FunctionbyName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:145
MethodbyName
(this: UserModelQuery, name: string)
test/types/models.test.ts:546
MethodbyName
(name: string)
test/types/queries.test.ts:795
MethodbyName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:118
FunctionbyUserName
(userName)
test/query.test.js:3763
FunctionbyUserName
(userName)
test/types/schema.create.test.ts:558
FunctionbyUserName
(userName)
test/types/schema.test.ts:559
FunctioncapitalizeFirstLetter
(v)
test/docs/lean.test.js:101
Methodcast
* Casts to Map * * @param {object} value * @param {object} model this value is optional * @api private
lib/schema/map.js:41
Methodcast
(val)
test/driver.test.js:45
Methodcast
(value)
test/document.test.js:14773
Functioncast$all
(val, context)
lib/schema/array.js:593
Functioncast$elemMatch
(val, context)
lib/schema/documentArray.js:660
Functioncast$elemMatch
(val, context)
lib/schema/array.js:614
Functioncast$geoIntersects
(val)
lib/schema/operators/geospatial.js:90
Functioncast$near
(val)
lib/schema/operators/geospatial.js:18
Functioncast$within
(val)
lib/schema/operators/geospatial.js:57
FunctioncastToNumber
(val)
lib/schema/operators/helpers.js:20
FunctioncheckDoc
(doc)
test/aggregate.test.js:1204
FunctioncheckDoc
(doc)
test/query.cursor.test.js:331
FunctioncheckIfLength2
(v)
test/schematype.test.js:237
FunctioncheckIfString
(v)
test/schematype.test.js:234
FunctionclearAtomics
* Clears all pending atomic operations. Called by Mongoose after save(). * * @return {void} * @method clearAtomics * @memberOf MongooseArr
lib/types/array/methods/index.js:105
Methodclone
* Creates a copy of this map schema type. * * @api private
lib/schema/map.js:85
FunctionclosePanel
()
docs/js/ask-ai.js:157
Methodcollection
()
test/driver.test.js:82
FunctioncompareBuffer
* 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
FunctioncompareBuffers
(a, b)
test/model.findOneAndUpdate.test.js:781
FunctioncompareDate
* Compare dates by timestamp like `addToSet()` does, so `pull()` works on date arrays. * @api private
lib/types/array/methods/index.js:1004
FunctioncompareDecimal128
* 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
FunctioncompareDouble
* Match Doubles only against other Doubles. MongoDB considers NaN equal to NaN. * @api private
lib/types/array/methods/index.js:1023
FunctionconnectionStates
()
test/types/base.test.ts:36
Methodconstructor
(subdocSnapshot, activePaths, version)
lib/modifiedPathsSnapshot.js:4
Methodconstructor
(v, path, doc, schemaType)
lib/types/map.js:23
Methodconstructor
(changeStreamPromise, pipeline, options)
lib/cursor/changeStream.js:21
Methodconstructor
(schema)
lib/defaults/schemaDefaultsCache.js:27
Methodconstructor
()
lib/helpers/pathTrie.js:7
Methodconstructor
* @param {string[]} [paths] paths to add to the trie
lib/helpers/pathTrie.js:29
Methodconstructor
(obj)
lib/options/virtualOptions.js:6
Methodconstructor
(obj)
lib/options/saveOptions.js:6
Methodconstructor
(obj)
lib/options/populateOptions.js:6
Methodconstructor
(obj)
lib/options/schemaTypeOptions.js:18
← previousnext →701–800 of 1,537, ranked by callers