MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,431 in github.com/Automattic/mongoose

↓ 1 callersFunctionformatMessage
* Formats error messages * @api private
lib/error/validator.js:80
↓ 1 callersFunctionformatObjectId
(x, key)
lib/drivers/node-mongodb-native/collection.js:330
↓ 1 callersMethodfullName
()
test/types/document.test.ts:83
↓ 1 callersMethodfunc
(this: TestDoc)
test/types/queries.test.ts:677
↓ 1 callersFunctiongenerateContents
()
scripts/generateSearch.js:35
↓ 1 callersFunctiongenerateRandomCollectionName
()
test/model.test.js:10095
↓ 1 callersFunctiongenerateRecursiveDocument
(depth, curr = 0)
test/schema.test.js:4141
↓ 1 callersFunctiongenerateRecursiveDocument
(depth, curr = 0)
test/document.test.js:15387
↓ 1 callersFunctiongenerateSearch
(config)
scripts/generateSearch.js:131
↓ 1 callersFunctiongenerateVersionError
(doc, modifiedPaths, defaultPaths)
lib/model.js:590
↓ 1 callersFunctionget
()
test/types/schema.test.ts:2117
↓ 1 callersFunctiongetConfig
()
scripts/generateSearch.js:183
↓ 1 callersFunctiongetCurrentVersion
* Try to get the current version on the checked-out branch * @returns {Version}
scripts/website.js:294
↓ 1 callersFunctiongetIndexesToCreate
(schema, schemaIndexes, dbIndexes, toDrop, options)
lib/model.js:1489
↓ 1 callersFunctiongetIndexesToDrop
(schema, schemaIndexes, dbIndexes)
lib/model.js:1523
↓ 1 callersFunctiongetLatestVersionOf
* Get the latest version for the provided major version * @param {number} version major version to search for * @returns {Version}
scripts/website.js:278
↓ 1 callersFunctiongetMapPath
(schema, path)
lib/schema.js:1535
↓ 1 callersFunctiongetModifiedPaths
()
lib/document.js:2981
↓ 1 callersFunctiongetOwnPropertyDescriptors
(object)
lib/helpers/document/compile.js:216
↓ 1 callersFunctiongetPartialFilterExpression
(index, indexesType)
lib/helpers/indexes/getRelatedIndexes.js:57
↓ 1 callersFunctiongetPaymentModel
()
test/model.updateOne.test.js:3250
↓ 1 callersFunctiongetPaymentWithDotSeparatedPaths
()
test/model.updateOne.test.js:3273
↓ 1 callersFunctiongetPopulatedLocationIds
(trip)
test/types.documentarray.test.js:1292
↓ 1 callersFunctiongetPositionalPath
(self, path, cleanPath)
lib/schema.js:2047
↓ 1 callersFunctiongetProperty
(obj, prop)
lib/helpers/get.js:57
↓ 1 callersFunctiongetStrictQuery
(queryOptions, schemaUserProvidedOptions, schemaOptions, context)
lib/cast.js:422
↓ 1 callersMethodgetString
()
test/model.discriminator.test.js:1433
↓ 1 callersFunctiongetSubdocs
(doc)
lib/document.js:3893
↓ 1 callersFunctiongetTeacherPosts
(id, skip)
test/model.populate.test.js:6343
↓ 1 callersFunctiongetTestField
(obj: { testField: string })
test/types/schema.test.ts:1953
↓ 1 callersFunctiongetTestRouteData
()
test/types/docArray.test.ts:63
↓ 1 callersFunctiongetTests
* Load all test file contents with acquit * @returns {Object[]} acquit ast array
scripts/website.js:105
↓ 1 callersFunctiongetTimestampsOpt
* 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:313
↓ 1 callersFunctiongetUri
(default_uri, db)
test/common.js:92
↓ 1 callersFunctiongetUriReadPreference
(connectionString)
lib/helpers/processConnectionOptions.js:43
↓ 1 callersFunctiongetUser
()
test/document.test.js:14734
↓ 1 callersFunctiongetUserModel
()
test/document.test.js:11284
↓ 1 callersFunctiongetV8FilterQuery
(filter: QueryFilter<Entity>)
test/types/queries.test.ts:856
↓ 1 callersFunctiongetVersions
* Get versions from git tags and put them into {@link filteredTags}
scripts/website.js:225
↓ 1 callersFunctiongh12537
()
test/types/mongo.test.ts:5
↓ 1 callersFunctionhandleAccumulator
(operator)
lib/helpers/aggregate/stringifyFunctionOperators.js:40
↓ 1 callersFunctionhandleAtomics
* Compiles an update and where clause for a `val` with _atomics. * * @param {Document} self * @param {object} where * @param {object} delta * @pa
lib/document.js:5432
↓ 1 callersFunctionhandleNextResult
(doc, i, callback)
lib/helpers/cursor/eachAsync.js:170
↓ 1 callersFunctionhandleRefFunction
(ref, doc)
lib/helpers/populate/getModelsMapForPopulate.js:727
↓ 1 callersFunctionhandleSuccessfulWrite
(document, options)
lib/model.js:3658
↓ 1 callersFunctionhasKey
(obj, key)
lib/helpers/update/decorateUpdateWithVersionKey.js:30
↓ 1 callersMethodhasNext
(cb)
lib/cursor/changeStream.js:99
↓ 1 callersFunctionindexSingleDone
(err, fields, options, name)
lib/model.js:1745
↓ 1 callersFunctionindexSingleStart
(fields, options)
lib/model.js:1748
↓ 1 callersMethodinfo
()
test/types/document.test.ts:325
↓ 1 callersFunctioninit
* Init helper. * * @param {object} self document instance * @param {object} obj raw mongodb doc * @param {object} doc object we are initializing
lib/document.js:742
↓ 1 callersMethodinit
(type, value, path, reason, schemaType)
lib/error/cast.js:49
↓ 1 callersFunctioninitializeData
()
test/query.middleware.test.js:25
↓ 1 callersMethodinsertMany
(elems: T[])
test/types/models.test.ts:849
↓ 1 callersFunctionis
(tj)
test/types.buffer.test.js:182
↓ 1 callersFunctionisEmptyFilter
(obj)
lib/query.js:172
↓ 1 callersFunctionisLean
(document)
test/model.test.js:10091
↓ 1 callersFunctionisLean
test/model.populate.test.js:6700
↓ 1 callersFunctionisModified
(castedDoc, updatedKeys, path, pathPieces, hasDollarUpdate)
lib/helpers/setDefaultsOnInsert.js:111
↓ 1 callersFunctionisPathInFields
(userProvidedFields, path)
lib/helpers/query/selectPopulatedFields.js:51
↓ 1 callersFunctionisPopulatedObject
* 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 callersMethodisSuperAdmin
()
test/types/schema.test.ts:1649
↓ 1 callersFunctioniter
* 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 callersFunctioniterate
(finalCallback)
lib/helpers/cursor/eachAsync.js:66
↓ 1 callersFunctionjsfy
(obj)
test/model.middleware.preposttypes.test.js:49
↓ 1 callersFunctionloadMarkdownDependencies
()
docs/js/ask-ai.js:285
↓ 1 callersFunctionloadScript
(src, isLoaded)
docs/js/ask-ai.js:297
↓ 1 callersFunctionmain
()
scripts/static.js:12
↓ 1 callersFunctionmain
()
scripts/setup-encryption-tests.js:9
↓ 1 callersFunctionmain
()
scripts/update-mongodb-links.js:59
↓ 1 callersFunctionmakeLean
* Set each path query option to lean * * @param {object} option
lib/queryHelpers.js:383
↓ 1 callersFunctionmakeSingles
(arr)
lib/utils.js:615
↓ 1 callersFunctionmapURLs
* Map urls (https://mongoosejs.com/) to local paths * @param {String} block The String block to look for urls * @param {String} currentUrl The URL t
scripts/website.js:416
↓ 1 callersFunctionmapURLsMongoDb
* Map <https://mongodb.github.io/node-mongodb-native/MAJOR.MINOR/> urls to their current mongodb's version. * @param {string} block The String block
scripts/update-mongodb-links.js:34
↓ 1 callersFunctionmatchIdsToRefPaths
(ids, refPaths, refPathToFind)
lib/helpers/populate/getModelsMapForPopulate.js:709
↓ 1 callersFunctionmaybeRemoveId
* Remove _id from `subdoc` if user specified "lean" query option * @param {Document} subdoc * @param {object} assignmentOpts * @api private
lib/helpers/populate/assignVals.js:334
↓ 1 callersFunctionmergeAtomics
(destination, source)
lib/plugins/trackTransaction.js:69
↓ 1 callersFunctionmoveDocsToTemp
()
scripts/website.js:163
↓ 1 callersFunctionnormalizeHtmlDescription
* Clean a dox description for HTML output. * @param {String} [description] The raw dox description * @returns {String}
docs/source/api.js:260
↓ 1 callersFunctionnormalizeMarkdownDescription
* Clean a dox description for Markdown output. * @param {String} [description] The raw dox description * @returns {String}
docs/source/api.js:248
↓ 1 callersFunctionnot
(tj)
test/types.buffer.test.js:178
↓ 1 callersFunctionnumDocs
(v)
lib/helpers/populate/assignVals.js:223
↓ 1 callersFunctionomitDeselectedFields
(self, json)
lib/document.js:4517
↓ 1 callersFunctiononPreComplete
(err)
lib/cursor/queryCursor.js:54
↓ 1 callersFunctiononPreComplete
(err)
lib/cursor/aggregationCursor.js:68
↓ 1 callersFunctiononlyTestAtOrAbove
* Helper function to test operators that only work in a specific version of MongoDB and above (such as some aggregation pipeline operators) * * @par
test/aggregate.test.js:50
↓ 1 callersFunctionparseAllFiles
* Parse all files defined in "files"
docs/source/api.js:348
↓ 1 callersFunctionparseEvent
(rawEvent, onEvent)
docs/js/ask-ai.js:198
↓ 1 callersFunctionparseFile
* Parse a specific file * @param {String} file The file to parse * @param {Boolean} throwErr throw the error if one is encountered?
docs/source/api.js:359
↓ 1 callersFunctionparseVersion
* Parse a given semver version string to a number array * @param {string} str The string to parse * @returns number array or undefined
scripts/website.js:195
↓ 1 callersFunctionpathExistsInUpdate
(update, targetPath, pathPieces)
lib/helpers/setDefaultsOnInsert.js:146
↓ 1 callersFunctionplugin
(schema: Schema)
test/types/plugin.test.ts:104
↓ 1 callersFunctionpluralize
* Pluralize function. * * @author TJ Holowaychuk (extracted from _ext.js_) * @param {string} string to pluralize * @api private
lib/helpers/pluralize.js:83
↓ 1 callersFunctionprepareDiscriminatorCriteria
* If the model is a discriminator type and not root, then add the key & value to the criteria. * @param {Query} query * @api private
lib/query.js:3404
↓ 1 callersFunctionprimitiveSchemaMapTests
()
test/encryptedSchema.test.js:669
↓ 1 callersFunctionprocessConnectionOptions
(uri, options)
lib/helpers/processConnectionOptions.js:6
↓ 1 callersFunctionprocessFile
(props)
docs/source/api.js:373
↓ 1 callersFunctionprocessName
* Process a file name to a documentation name * @param {string} input * @returns {NameObj}
docs/source/api.js:167
↓ 1 callersFunctionreadEventStream
(body, onEvent)
docs/js/ask-ai.js:177
↓ 1 callersMethodrecompileSchema
Apply changes made to this model's schema after this model was compiled.
types/models.d.ts:1230
← previousnext →401–500 of 1,431, ranked by callers