MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,512 in github.com/Automattic/mongoose

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
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:13376
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:607
FunctionautoTypedSchema
()
test/types/schema.create.test.ts:375
FunctionautoTypedVirtuals
()
test/types/virtuals.test.ts:90
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:718
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:674
MethodbyName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:118
FunctionbyUserName
(userName)
test/query.test.js:3790
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:14874
Functioncast$all
(val, context)
lib/schema/array.js:589
Functioncast$elemMatch
(val, context)
lib/schema/documentArray.js:652
Functioncast$elemMatch
(val, context)
lib/schema/array.js:610
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:1195
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
Functioncompare
(a, b)
test/model.populate.test.js:5033
FunctioncompareBuffers
(a, b)
test/model.findOneAndUpdate.test.js:801
FunctionconnectionStates
()
test/types/base.test.ts:36
Methodconstructor
(subdocSnapshot, activePaths, version)
lib/modifiedPathsSnapshot.js:4
Methodconstructor
(v, path, doc, schemaType)
lib/types/map.js:22
Methodconstructor
(changeStreamPromise, pipeline, options)
lib/cursor/changeStream.js:21
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
Methodconstructor
* Map SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} pare
lib/schema/map.js:26
Methodconstructor
* 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
Methodconstructor
()
lib/error/browserMissingSchema.js:15
Methodconstructor
(path, msg, immutable)
lib/error/strict.js:22
Methodconstructor
(properties, doc)
lib/error/validator.js:19
Methodconstructor
(message, errorsMap)
lib/error/createCollectionsError.js:15
Methodconstructor
(instance)
lib/error/validation.js:22
Methodconstructor
(type, value, path, reason, schemaType)
lib/error/cast.js:20
Methodconstructor
(message, errorsMap)
lib/error/syncIndexes.js:19
Methodconstructor
(doc, currentVersion, modifiedPaths)
lib/error/version.js:20
Methodconstructor
(doc)
lib/error/parallelSave.js:19
Methodconstructor
(name)
lib/error/overwriteModel.js:18
Methodconstructor
(validationErrors, results, rawResult, operation)
lib/error/bulkWriteError.js:19
Methodconstructor
()
lib/error/setOptionError.js:20
Methodconstructor
* Error for the "errors" array in "SetOptionError" with consistent message * @param {string} key
lib/error/setOptionError.js:92
Methodconstructor
(filter, model, numAffected, result)
lib/error/notFound.js:17
Methodconstructor
(doc)
lib/error/parallelValidate.js:19
Methodconstructor
* @param {string} connectionString
lib/error/eachAsyncMultiError.js:22
Methodconstructor
(value, paramName, fnName)
lib/error/objectParameter.js:20
← previousnext →701–800 of 1,512, ranked by callers