MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

Function_transformForAsyncIterator
(doc)
lib/cursor/AggregationCursor.js:305
Method_update
()
test/types/models.test.ts:239
Function_updateThunk
(op)
lib/query.js:3869
Function_validateArgs
(uri, options, callback)
lib/connection.js:801
Functiona
()
test/model.updateOne.test.js:226
MethodaddError
* add message * @param {String} key * @param {String|Error} error * @api private
lib/error/setOptionError.js:45
MethodaddListener
(event, handler)
lib/cursor/ChangeStream.js:122
FunctionaddSufix
(name)
test/document.test.js:12472
FunctionaddToPaths
(p)
lib/document.js:2705
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:411
FunctionaggregateOptionsTest
()
test/types/models.test.ts:604
FunctionapplyWhere
()
lib/plugins/sharding.js:32
FunctionautoTypedDocument
()
test/types/document.test.ts:184
FunctionautoTypedDocumentConnection
()
test/types/document.test.ts:197
FunctionautoTypedQuery
()
test/types/queries.test.ts:302
FunctionautoTypedVirtuals
()
test/types/virtuals.test.ts:90
Functionbar
(SomeModel: Model<ITest & Document>)
test/types/models.test.ts:63
Methodbar
()
test/model.test.js:7341
FunctionbuildPreSavePromise
(document)
lib/model.js:3642
FunctionbulkWrite
()
test/types/models.test.ts:258
FunctionbulkWriteAddToSet
()
test/types/models.test.ts:281
FunctionbyName
(this: UserModelQuery, name: string)
test/types/models.test.ts:474
FunctionbyName
(name: string)
test/types/queries.test.ts:403
FunctionbyName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:132
MethodbyName
(this: UserModelQuery, name: string)
test/types/models.test.ts:447
MethodbyName
(name: string)
test/types/queries.test.ts:359
MethodbyName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:105
FunctionbyUserName
(userName)
test/query.test.js:3552
FunctionbyUserName
(userName)
test/types/schema.test.ts:536
FunctioncapitalizeFirstLetter
(v)
test/docs/lean.test.js:94
Methodcast
(val)
test/types/schema.test.ts:360
Functioncast$all
(val, context)
lib/schema/array.js:578
Functioncast$elemMatch
(val, context)
lib/schema/array.js:599
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
FunctionchangeStreamThunk
lib/connection.js:1240
FunctioncheckDoc
(doc)
test/aggregate.test.js:1157
FunctioncheckDoc
(doc)
test/query.cursor.test.js:328
Functioncleanup
()
examples/promises/promise.js:92
Functioncleanup
()
examples/replicasets/replica-sets.js:69
Methodcollection
()
test/driver.test.js:62
Functioncompare
(a, b)
test/model.populate.test.js:4766
FunctioncompareBuffers
(a, b)
test/model.findOneAndUpdate.test.js:742
FunctioncompleteUnorderedValidation
()
lib/model.js:3528
FunctionconnectionStates
()
test/types/base.test.ts:27
Methodconstructor
(obj, fields)
lib/browser.js:116
Methodconstructor
(v, path, doc, schemaType)
lib/types/map.js:20
Methodconstructor
(changeStreamThunk, pipeline, options)
lib/cursor/ChangeStream.js:20
Methodconstructor
(obj)
lib/options/saveOptions.js:6
Methodconstructor
(obj)
lib/options/VirtualOptions.js:6
Methodconstructor
(obj)
lib/options/SchemaTypeOptions.js:18
Methodconstructor
(obj)
lib/options/PopulateOptions.js:6
Methodconstructor
(key, options)
lib/schema/map.js:15
Methodconstructor
* MissingSchema Error constructor.
lib/error/browserMissingSchema.js:14
Methodconstructor
* Strict mode error constructor * * @param {String} path * @param {String} [msg] * @param {Boolean} [immutable] * @inherits MongooseErr
lib/error/strict.js:20
Methodconstructor
* Schema validator error * * @param {Object} properties * @param {Document} doc * @api private
lib/error/validator.js:18
Methodconstructor
(message, errorsMap)
lib/error/createCollectionsError.js:15
Methodconstructor
* Document Validation Error * * @api private * @param {Document} [instance] * @inherits MongooseError
lib/error/validation.js:20
Methodconstructor
(type, value, path, reason, schemaType)
lib/error/cast.js:20
Methodconstructor
(message, errorsMap)
lib/error/syncIndexes.js:19
Methodconstructor
* Version Error constructor. * * @param {Document} doc * @param {Number} currentVersion * @param {Array<String>} modifiedPaths * @api p
lib/error/version.js:18
Methodconstructor
* ParallelSave Error constructor. * * @param {Document} doc * @api private
lib/error/parallelSave.js:16
Methodconstructor
* OverwriteModel Error constructor. * @param {String} name * @api private
lib/error/overwriteModel.js:17
Methodconstructor
(validationErrors, results, rawResult, operation)
lib/error/bulkWriteError.js:19
Methodconstructor
* Mongoose.set Error * * @api private * @inherits MongooseError
lib/error/setOptionError.js:18
Methodconstructor
* Error for the "errors" array in "SetOptionError" with consistent message * @param {String} key
lib/error/setOptionError.js:90
Methodconstructor
* OverwriteModel Error constructor. * @api private
lib/error/notFound.js:15
Methodconstructor
* ParallelValidate Error constructor. * * @param {Document} doc * @api private
lib/error/parallelValidate.js:17
Methodconstructor
* @param {String} connectionString
lib/error/eachAsyncMultiError.js:22
Methodconstructor
* Constructor for errors that happen when a parameter that's expected to be * an object isn't an object * * @param {Any} value * @param {S
lib/error/objectParameter.js:19
Methodconstructor
* DivergentArrayError constructor. * @param {Array<String>} paths * @api private
lib/error/divergentArray.js:16
Methodconstructor
* InvalidSchemaOption Error constructor. * @param {String} name * @api private
lib/error/invalidSchemaOption.js:16
Methodconstructor
* Strict mode error constructor * * @param {string} type * @param {string} value * @api private
lib/error/objectExpected.js:18
Methodconstructor
* Strict mode error constructor * * @param {String} path * @param {String} [msg] * @inherits MongooseError * @api private
lib/error/strictPopulate.js:18
Methodconstructor
* MissingSchema Error constructor. * @param {String} name * @api private
lib/error/missingSchema.js:16
Methodconstructor
(base)
test/driver.test.js:20
Methodconstructor
(base)
test/driver.test.js:55
Methodconstructor
(message)
test/utils.test.js:340
Methodconstructor
(prop)
test/document.test.js:7159
Methodconstructor
(binary, options)
test/connection_server.js:9
Methodconstructor
(schemaModel: mongoose.Model<T>)
test/types/models.test.ts:744
Methodconstructor
()
test/types/queries.test.ts:450
Methodconstructor
(key, options)
test/types/schema.test.ts:357
Methodconstructor
(MM: Model<T>)
test/types/generics.test.ts:6
Methodconstructor
()
test/helpers/clone.test.js:210
Methodconstructor
(myAttr)
test/helpers/clone.test.js:226
Methodconstructor
(myAttr)
test/helpers/clone.test.js:245
Methodconstructor
(key, options)
test/docs/schematypes.test.js:33
Functioncreate
* Creates a subdocument casted to this schema. * * This is the same subdocument constructor used for casting. * * @param {Object} obj the
lib/types/DocumentArray/methods/index.js:264
FunctioncreateFoo
(foo: FooInput)
test/types/document.test.ts:115
Functionctor
()
lib/statemachine.js:37
FunctioncustomPluralize
(str)
test/index.test.js:61
Functiondef
()
test/model.test.js:1450
Functiondefault
()
test/types/schema.test.ts:594
FunctiondefaultFn
()
lib/schema/array.js:115
FunctiondefaultId
()
lib/schema/objectid.js:275
FunctiondefaultOptions
()
test/types/schemaTypeOptions.test.ts:57
MethoddeleteInstallation
(installationId: number)
test/types/models.test.ts:248
← previousnext →601–700 of 1,018, ranked by callers