Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,018 in github.com/Automattic/mongoose
⨍
Functions
1,018
◇
Types & classes
646
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
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:45
Method
addListener
(event, handler)
lib/cursor/ChangeStream.js:122
Function
addSufix
(name)
test/document.test.js:12472
Function
addToPaths
(p)
lib/document.js:2705
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:411
Function
aggregateOptionsTest
()
test/types/models.test.ts:604
Function
applyWhere
()
lib/plugins/sharding.js:32
Function
autoTypedDocument
()
test/types/document.test.ts:184
Function
autoTypedDocumentConnection
()
test/types/document.test.ts:197
Function
autoTypedQuery
()
test/types/queries.test.ts:302
Function
autoTypedVirtuals
()
test/types/virtuals.test.ts:90
Function
bar
(SomeModel: Model<ITest & Document>)
test/types/models.test.ts:63
Method
bar
()
test/model.test.js:7341
Function
buildPreSavePromise
(document)
lib/model.js:3642
Function
bulkWrite
()
test/types/models.test.ts:258
Function
bulkWriteAddToSet
()
test/types/models.test.ts:281
Function
byName
(this: UserModelQuery, name: string)
test/types/models.test.ts:474
Function
byName
(name: string)
test/types/queries.test.ts:403
Function
byName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:132
Method
byName
(this: UserModelQuery, name: string)
test/types/models.test.ts:447
Method
byName
(name: string)
test/types/queries.test.ts:359
Method
byName
(this: UserModelQuery, name: string)
test/types/connection.test.ts:105
Function
byUserName
(userName)
test/query.test.js:3552
Function
byUserName
(userName)
test/types/schema.test.ts:536
Function
capitalizeFirstLetter
(v)
test/docs/lean.test.js:94
Method
cast
(val)
test/types/schema.test.ts:360
Function
cast$all
(val, context)
lib/schema/array.js:578
Function
cast$elemMatch
(val, context)
lib/schema/array.js:599
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
changeStreamThunk
lib/connection.js:1240
Function
checkDoc
(doc)
test/aggregate.test.js:1157
Function
checkDoc
(doc)
test/query.cursor.test.js:328
Function
cleanup
()
examples/promises/promise.js:92
Function
cleanup
()
examples/replicasets/replica-sets.js:69
Method
collection
()
test/driver.test.js:62
Function
compare
(a, b)
test/model.populate.test.js:4766
Function
compareBuffers
(a, b)
test/model.findOneAndUpdate.test.js:742
Function
completeUnorderedValidation
()
lib/model.js:3528
Function
connectionStates
()
test/types/base.test.ts:27
Method
constructor
(obj, fields)
lib/browser.js:116
Method
constructor
(v, path, doc, schemaType)
lib/types/map.js:20
Method
constructor
(changeStreamThunk, pipeline, options)
lib/cursor/ChangeStream.js:20
Method
constructor
(obj)
lib/options/saveOptions.js:6
Method
constructor
(obj)
lib/options/VirtualOptions.js:6
Method
constructor
(obj)
lib/options/SchemaTypeOptions.js:18
Method
constructor
(obj)
lib/options/PopulateOptions.js:6
Method
constructor
(key, options)
lib/schema/map.js:15
Method
constructor
* MissingSchema Error constructor.
lib/error/browserMissingSchema.js:14
Method
constructor
* Strict mode error constructor * * @param {String} path * @param {String} [msg] * @param {Boolean} [immutable] * @inherits MongooseErr
lib/error/strict.js:20
Method
constructor
* Schema validator error * * @param {Object} properties * @param {Document} doc * @api private
lib/error/validator.js:18
Method
constructor
(message, errorsMap)
lib/error/createCollectionsError.js:15
Method
constructor
* Document Validation Error * * @api private * @param {Document} [instance] * @inherits MongooseError
lib/error/validation.js:20
Method
constructor
(type, value, path, reason, schemaType)
lib/error/cast.js:20
Method
constructor
(message, errorsMap)
lib/error/syncIndexes.js:19
Method
constructor
* Version Error constructor. * * @param {Document} doc * @param {Number} currentVersion * @param {Array<String>} modifiedPaths * @api p
lib/error/version.js:18
Method
constructor
* ParallelSave Error constructor. * * @param {Document} doc * @api private
lib/error/parallelSave.js:16
Method
constructor
* OverwriteModel Error constructor. * @param {String} name * @api private
lib/error/overwriteModel.js:17
Method
constructor
(validationErrors, results, rawResult, operation)
lib/error/bulkWriteError.js:19
Method
constructor
* Mongoose.set Error * * @api private * @inherits MongooseError
lib/error/setOptionError.js:18
Method
constructor
* Error for the "errors" array in "SetOptionError" with consistent message * @param {String} key
lib/error/setOptionError.js:90
Method
constructor
* OverwriteModel Error constructor. * @api private
lib/error/notFound.js:15
Method
constructor
* ParallelValidate Error constructor. * * @param {Document} doc * @api private
lib/error/parallelValidate.js:17
Method
constructor
* @param {String} connectionString
lib/error/eachAsyncMultiError.js:22
Method
constructor
* 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
Method
constructor
* DivergentArrayError constructor. * @param {Array<String>} paths * @api private
lib/error/divergentArray.js:16
Method
constructor
* InvalidSchemaOption Error constructor. * @param {String} name * @api private
lib/error/invalidSchemaOption.js:16
Method
constructor
* Strict mode error constructor * * @param {string} type * @param {string} value * @api private
lib/error/objectExpected.js:18
Method
constructor
* Strict mode error constructor * * @param {String} path * @param {String} [msg] * @inherits MongooseError * @api private
lib/error/strictPopulate.js:18
Method
constructor
* MissingSchema Error constructor. * @param {String} name * @api private
lib/error/missingSchema.js:16
Method
constructor
(base)
test/driver.test.js:20
Method
constructor
(base)
test/driver.test.js:55
Method
constructor
(message)
test/utils.test.js:340
Method
constructor
(prop)
test/document.test.js:7159
Method
constructor
(binary, options)
test/connection_server.js:9
Method
constructor
(schemaModel: mongoose.Model<T>)
test/types/models.test.ts:744
Method
constructor
()
test/types/queries.test.ts:450
Method
constructor
(key, options)
test/types/schema.test.ts:357
Method
constructor
(MM: Model<T>)
test/types/generics.test.ts:6
Method
constructor
()
test/helpers/clone.test.js:210
Method
constructor
(myAttr)
test/helpers/clone.test.js:226
Method
constructor
(myAttr)
test/helpers/clone.test.js:245
Method
constructor
(key, options)
test/docs/schematypes.test.js:33
Function
create
* 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
Function
createFoo
(foo: FooInput)
test/types/document.test.ts:115
Function
ctor
()
lib/statemachine.js:37
Function
customPluralize
(str)
test/index.test.js:61
Function
def
()
test/model.test.js:1450
Function
default
()
test/types/schema.test.ts:594
Function
defaultFn
()
lib/schema/array.js:115
Function
defaultId
()
lib/schema/objectid.js:275
Function
defaultOptions
()
test/types/schemaTypeOptions.test.ts:57
Method
deleteInstallation
(installationId: number)
test/types/models.test.ts:248
← previous
next →
601–700 of 1,018, ranked by callers