Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,512 in github.com/Automattic/mongoose
⨍
Functions
1,512
◇
Types & classes
795
↓ 1 callers
Function
defaultIndexOptsToFalse
(opts)
lib/helpers/processConnectionOptions.js:54
↓ 1 callers
Function
delay
(ms)
test/model.updateOne.test.js:3940
↓ 1 callers
Function
delay
(ms)
test/timestamps.test.js:1098
↓ 1 callers
Function
delay
(ms)
test/model.test.js:10337
↓ 1 callers
Function
delay
(ms)
test/query.cursor.test.js:1140
↓ 1 callers
Function
deleteAllHtmlFiles
()
scripts/website.js:122
↓ 1 callers
Function
doExit
(code)
test/deno.mjs:34
↓ 1 callers
Function
docs
(arr)
test/types.array.test.js:1903
↓ 1 callers
Function
downloadCryptShared
()
scripts/setup-encryption-tests.js:16
↓ 1 callers
Function
encrypt
(doc, path, value)
test/document.test.js:9639
↓ 1 callers
Function
exists
* @param {string} path * * @returns {boolean}
test/encryption/encryption.test.js:23
↓ 1 callers
Function
extractTextUrlFromTag
* Extract the Text and Url from a description if any * @param {Tag} tag The tag to process the resulting object from * @param {PropContext} ctx The
docs/source/api.js:591
↓ 1 callers
Function
failFirstCommit
(createError)
test/docs/transactions.test.js:497
↓ 1 callers
Function
filter
()
test/query.test.js:681
↓ 1 callers
Method
findByFullName
(name)
test/docs/schemas.test.js:53
↓ 1 callers
Function
findChildModel
* Check if there is an embedded schematype in the given schematype. Handles drilling down into primitive * arrays and maps in case of array of array
lib/helpers/model/applyHooks.js:150
↓ 1 callers
Method
findOne
( filter: QueryFilter<mongoose.WithLevel1NestedPaths<Blog>>, projection: Projection, options
test/types/queries.test.ts:764
↓ 1 callers
Method
findSomething
(this: TestModel)
test/types/plugin.test.ts:49
↓ 1 callers
Function
fixNoAsyncFn
()
docs/js/convert-old-anchorid.js:73
↓ 1 callers
Function
fixSubIndexPaths
* Checks for indexes added to subdocs using Schema.index(). * These indexes need their paths prefixed properly. * * schema._indexes = [ [inde
lib/helpers/schema/getIndexes.js:142
↓ 1 callers
Function
flatten
(item)
lib/model.js:4605
↓ 1 callers
Function
flatten
(update, path, options, schema)
lib/helpers/common.js:20
↓ 1 callers
Function
foo
(model: Model<User, {}, {}, {}>)
test/types/models.test.ts:243
↓ 1 callers
Method
foo
()
test/model.test.js:9237
↓ 1 callers
Function
formatApiType
* Format an API type string for Markdown output. * @param {String} [types] The API type string to format * @returns {String}
docs/source/api.js:271
↓ 1 callers
Function
formatDate
(x, key, shell)
lib/drivers/node-mongodb-native/collection.js:333
↓ 1 callers
Function
formatMaxLengthValidatorMessage
(msg)
lib/schema/string.js:739
↓ 1 callers
Function
formatMessage
* Formats error messages * @api private
lib/error/validator.js:80
↓ 1 callers
Function
formatObjectId
(x, key)
lib/drivers/node-mongodb-native/collection.js:330
↓ 1 callers
Method
fullName
()
test/types/document.test.ts:83
↓ 1 callers
Method
func
(this: TestDoc)
test/types/queries.test.ts:909
↓ 1 callers
Function
generateContents
()
scripts/generateSearch.js:35
↓ 1 callers
Function
generateRandomCollectionName
()
test/model.test.js:10345
↓ 1 callers
Function
generateRecursiveDocument
(depth, curr = 0)
test/schema.test.js:4603
↓ 1 callers
Function
generateRecursiveDocument
(depth, curr = 0)
test/document.test.js:14997
↓ 1 callers
Function
generateSearch
(config)
scripts/generateSearch.js:131
↓ 1 callers
Function
generateVersionError
(doc, modifiedPaths, defaultPaths)
lib/model.js:593
↓ 1 callers
Function
get
()
test/types/schema.test.ts:2116
↓ 1 callers
Function
getConfig
()
scripts/generateSearch.js:183
↓ 1 callers
Function
getCurrentVersion
* Try to get the current version on the checked-out branch * @returns {Version}
scripts/website.js:290
↓ 1 callers
Function
getIndexesToCreate
(schema, schemaIndexes, dbIndexes, toDrop, options)
lib/model.js:1492
↓ 1 callers
Function
getIndexesToDrop
(schema, schemaIndexes, dbIndexes)
lib/model.js:1526
↓ 1 callers
Function
getLatestVersionOf
* Get the latest version for the provided major version * @param {number} version major version to search for * @returns {Version}
scripts/website.js:274
↓ 1 callers
Function
getMapPath
(schema, path)
lib/schema.js:1553
↓ 1 callers
Function
getOwnPropertyDescriptors
(object)
lib/helpers/document/compile.js:216
↓ 1 callers
Function
getPartialFilterExpression
(index, indexesType)
lib/helpers/indexes/getRelatedIndexes.js:57
↓ 1 callers
Function
getPaymentModel
()
test/model.updateOne.test.js:3452
↓ 1 callers
Function
getPaymentWithDotSeparatedPaths
()
test/model.updateOne.test.js:3475
↓ 1 callers
Function
getPopulatedLocationIds
(trip)
test/types.documentarray.test.js:1466
↓ 1 callers
Function
getPositionalPath
(self, path, cleanPath)
lib/schema.js:2149
↓ 1 callers
Function
getProperty
(obj, prop)
lib/helpers/get.js:57
↓ 1 callers
Function
getReadPreferenceMode
(readPreference)
lib/helpers/processConnectionOptions.js:43
↓ 1 callers
Function
getStrictQuery
(queryOptions, schemaUserProvidedOptions, schemaOptions, context)
lib/cast.js:419
↓ 1 callers
Method
getString
()
test/model.discriminator.test.js:1433
↓ 1 callers
Function
getSubdocs
(doc)
lib/document.js:4040
↓ 1 callers
Function
getTeacherPosts
(id, skip)
test/model.populate.test.js:6492
↓ 1 callers
Function
getTestField
(obj: { testField: string })
test/types/schema.test.ts:1952
↓ 1 callers
Function
getTestRouteData
()
test/types/docArray.test.ts:63
↓ 1 callers
Function
getTests
* Load all test file contents with acquit * @returns {Object[]} acquit ast array
scripts/website.js:100
↓ 1 callers
Function
getTimestampsOpt
* gets timestamps option for a given operation. If the option is set within an individual operation, use it. Otherwise, use the global timestamps opti
lib/helpers/model/castBulkWrite.js:337
↓ 1 callers
Function
getUri
(default_uri, db)
test/common.js:92
↓ 1 callers
Function
getUriReadPreference
(connectionString)
lib/helpers/processConnectionOptions.js:48
↓ 1 callers
Function
getUser
()
test/document.test.js:14345
↓ 1 callers
Function
getUserModel
()
test/document.validate.test.js:1785
↓ 1 callers
Function
getV8FilterQuery
(filter: QueryFilter<Entity>)
test/types/queries.test.ts:1088
↓ 1 callers
Function
getVersions
* Get versions from git tags and put them into {@link filteredTags}
scripts/website.js:221
↓ 1 callers
Function
gh12537
()
test/types/mongo.test.ts:5
↓ 1 callers
Function
handleAccumulator
(operator)
lib/helpers/aggregate/stringifyFunctionOperators.js:40
↓ 1 callers
Function
handleAtomics
* Compiles an update and where clause for a `val` with _atomics. * * @param {Document} self * @param {object} where * @param {object} delta * @pa
lib/document.js:5599
↓ 1 callers
Function
handleNextResult
(doc, i, callback)
lib/helpers/cursor/eachAsync.js:170
↓ 1 callers
Function
handleRefFunction
(ref, doc)
lib/helpers/populate/getModelsMapForPopulate.js:728
↓ 1 callers
Function
handleSuccessfulWrite
(document, options)
lib/model.js:3741
↓ 1 callers
Function
hasExcludedAncestor
(fields, path)
lib/queryHelpers.js:443
↓ 1 callers
Function
hasKey
(obj, key)
lib/helpers/update/decorateUpdateWithVersionKey.js:30
↓ 1 callers
Method
hasNext
(cb)
lib/cursor/changeStream.js:99
↓ 1 callers
Function
hasValidatedAncestor
(alreadyValidated, path)
lib/helpers/updateValidators.js:187
↓ 1 callers
Function
indexSingleDone
(err, fields, options, name)
lib/model.js:1749
↓ 1 callers
Function
indexSingleStart
(fields, options)
lib/model.js:1752
↓ 1 callers
Method
info
()
test/types/document.test.ts:325
↓ 1 callers
Function
init
* Init helper. * * @param {object} self document instance * @param {object} obj raw mongodb doc * @param {object} doc object we are initializing
lib/document.js:756
↓ 1 callers
Method
init
(type, value, path, reason, schemaType)
lib/error/cast.js:49
↓ 1 callers
Function
initializeData
()
test/query.middleware.test.js:25
↓ 1 callers
Method
insertMany
(elems: T[])
test/types/models.test.ts:944
↓ 1 callers
Function
invalidate
()
test/document.validate.test.js:1669
↓ 1 callers
Function
is
(tj)
test/types.buffer.test.js:185
↓ 1 callers
Function
isEmptyFilter
(obj)
lib/query.js:174
↓ 1 callers
Function
isLean
(document)
test/model.test.js:10341
↓ 1 callers
Function
isLean
test/model.populate.test.js:6849
↓ 1 callers
Function
isModified
(castedDoc, updatedKeys, path, pathPieces, hasDollarUpdate)
lib/helpers/setDefaultsOnInsert.js:111
↓ 1 callers
Function
isPathInFields
(userProvidedFields, path)
lib/helpers/query/selectPopulatedFields.js:51
↓ 1 callers
Function
isPopulatedObject
* Determine if `obj` is something we can set a populated path to. Can be a * document, a lean document, or an array/map that contains docs. * @param
lib/helpers/populate/assignVals.js:351
↓ 1 callers
Method
isSuperAdmin
()
test/types/schema.test.ts:1648
↓ 1 callers
Function
iter
* Copy the collection methods and make them subject to queues * @param {number|string} I * @api private
lib/drivers/node-mongodb-native/collection.js:89
↓ 1 callers
Function
iterate
(finalCallback)
lib/helpers/cursor/eachAsync.js:66
↓ 1 callers
Function
jsfy
(obj)
test/model.middleware.preposttypes.test.js:49
↓ 1 callers
Function
loadMarkdownDependencies
()
docs/js/ask-ai.js:312
↓ 1 callers
Function
loadScript
(src, isLoaded)
docs/js/ask-ai.js:324
↓ 1 callers
Function
main
()
scripts/static.js:12
↓ 1 callers
Function
main
()
scripts/setup-encryption-tests.js:9
↓ 1 callers
Function
makeLean
* Set each path query option to lean * * @param {object} option
lib/queryHelpers.js:465
← previous
next →
401–500 of 1,512, ranked by callers