Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,537 in github.com/Automattic/mongoose
⨍
Functions
1,537
◇
Types & classes
799
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
Method
constructor
(paths)
lib/error/divergentArray.js:18
Method
constructor
(name, option)
lib/error/invalidSchemaOption.js:18
Method
constructor
(path, val)
lib/error/objectExpected.js:19
Method
constructor
(modelName, documents, bulkWriteResult)
lib/error/bulkSaveIncompleteError.js:18
Method
constructor
(path, msg)
lib/error/strictPopulate.js:20
Method
constructor
(name)
lib/error/missingSchema.js:18
Method
constructor
(base)
test/driver.test.js:20
Method
constructor
(key, options)
test/driver.test.js:41
Method
constructor
(base)
test/driver.test.js:75
Method
constructor
(message)
test/utils.test.js:357
Method
constructor
(prop)
test/document.test.js:7593
Method
constructor
(key, options)
test/document.test.js:14769
Method
constructor
(value)
test/document.test.js:14781
Method
constructor
(binary, options)
test/connection_server.js:9
Method
constructor
(key, options)
test/encryptedSchema.test.js:244
Method
constructor
( private readonly model: mongoose.Model<K> )
test/types/create.test.ts:256
Method
constructor
(key: string, options: Record<string, any>)
test/types/schema.create.test.ts:379
Method
constructor
(schemaModel: mongoose.Model<T>)
test/types/models.test.ts:939
Method
constructor
()
test/types/queries.test.ts:881
Method
constructor
()
test/types/queries.test.ts:1011
Method
constructor
(key: string, options: Record<string, any>)
test/types/schema.test.ts:380
Method
constructor
(MM: Model<T>)
test/types/generics.test.ts:6
Method
constructor
()
test/helpers/clone.test.js:215
Method
constructor
(myAttr)
test/helpers/clone.test.js:231
Method
constructor
(myAttr)
test/helpers/clone.test.js:250
Method
constructor
(key, options)
test/docs/schematypes.test.js:33
Function
countByName
(name: string)
test/types/schema.test.ts:2422
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:413
Function
createFoo
(foo: FooInput)
test/types/document.test.ts:120
Method
createOne
(resource: K)
test/types/create.test.ts:260
Function
createWithDocArray
()
test/types/create.test.ts:147
Function
createWithFullName
(name: string)
test/types/schema.create.test.ts:1418
Function
createWithFullName
(name: string)
test/types/schema.test.ts:1476
Method
createWithFullName
(name: string)
test/types/schema.create.test.ts:1407
Function
createWithMapOfSubdocs
()
test/types/create.test.ts:155
Function
createWithPopulatedDoc
()
test/types/create.test.ts:211
Function
createWithRawDocTypeNo_id
()
test/types/create.test.ts:190
Function
createWithSubdoc
()
test/types/create.test.ts:138
Function
createWithSubdocs
()
test/types/create.test.ts:174
Function
ctor
()
lib/stateMachine.js:36
Function
customModelInstanceWithStatics
()
test/types/models.test.ts:1258
Function
customPluralize
(str)
test/index.test.js:62
Function
debugOptions
()
test/types/base.test.ts:101
Function
def
()
test/model.test.js:1455
Function
default
()
test/types/schema.create.test.ts:633
Function
default
()
test/types/schema.test.ts:633
Function
defaultFn
()
lib/schema/array.js:114
Function
defaultId
()
lib/schema/objectId.js:291
Function
defaultOptions
()
test/types/schemaTypeOptions.test.ts:91
Function
defaultReturnsUndefined
()
test/types/schema.create.test.ts:1881
Function
defaultReturnsUndefined
()
test/types/schema.test.ts:1918
Function
defaultSortFindAndCount
()
test/types/queries.test.ts:1261
Function
deleteId
(doc, ret)
test/document.test.js:585
Method
deleteInstallation
(installationId: number)
test/types/models.test.ts:349
Function
disallownumflows
()
test/document.test.js:11091
Method
discriminator
Adds a discriminator type.
types/models.d.ts:15
Method
displayAs
()
test/schema.test.js:3103
Method
displayAs
()
test/schema.test.js:3109
Function
doSomething
()
test/types/models.test.ts:568
Function
doSomething
()
test/types/connection.test.ts:140
Method
doSomething
(this: HydratedDocument<User>)
test/types/models.test.ts:552
Method
doSomething
(this: HydratedDocument<User>)
test/types/connection.test.ts:124
Function
documentDepopulate
()
test/types/populate.test.ts:87
Function
dovalidate
()
test/model.test.js:758
Function
dovalidateAsync
()
test/model.test.js:763
Function
dropDBs
()
test/common.js:152
Function
eachAsync
()
test/types/aggregate.test.ts:40
Method
email
(v)
test/docs/getters-setters.test.js:169
Function
emitRemove
()
lib/types/subdocument.js:444
Function
employeeSchemaPreSaveFn
()
test/model.discriminator.test.js:58
Function
encrypt
()
test/types/schemaTypeOptions.test.ts:112
Function
encryptionType
()
test/types/schema.create.test.ts:607
Function
encryptionType
()
test/types/schema.test.ts:608
Function
end
()
test/tracing.test.js:43
Function
error
(ctx)
test/tracing.test.js:46
Function
errorHandler
(err, res, next)
test/query.middleware.test.js:399
Function
extract
(v)
test/schema.test.js:526
Function
failingvalidator
()
test/model.test.js:628
Method
fetchUser
(name: string)
benchmarks/typescript/simple/index.ts:10
Function
find
()
test/types/models.test.ts:315
Method
find
(id: string)
test/types/queries.test.ts:736
← previous
next →
801–900 of 1,537, ranked by callers