MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,456 in github.com/Automattic/mongoose

↓ 3 callersFunctionisLiteral
(val)
lib/helpers/query/cast$expr.js:277
↓ 3 callersFunctionisPath
(val)
lib/helpers/query/cast$expr.js:273
↓ 3 callersFunctionmerge
(schema, baseSchema)
lib/helpers/model/discriminator.js:131
↓ 3 callersMethodmyStatic
()
test/types/models.test.ts:269
↓ 3 callersFunctionpick
(obj, keys)
test/model.test.js:10099
↓ 3 callersMethodstart
()
test/connection_server.js:17
↓ 3 callersFunctionstringifySemverNumber
* Stringify a semver number array * @param {number[]} arr The array to stringify * @param {boolean} dotX If "true", return "5.X" instead of "5.5.5"
scripts/website.js:253
↓ 3 callersMethodtoBSON
* Converts this map to a native JavaScript Map so the MongoDB driver can serialize it. * * @api public * @method toBSON * @memberOf Map
lib/types/map.js:222
↓ 3 callersMethodtranslateAliases
Translate any aliases fields/conditions so the final query or document object is pure
types/models.d.ts:711
↓ 2 callersMethod$__set
(key, value)
lib/types/map.js:43
↓ 2 callersFunction_castExpression
(val, schema, strictQuery)
lib/helpers/query/cast$expr.js:82
↓ 2 callersFunction_createConstructor
(schema, options, baseClass)
lib/schema/documentArray.js:137
↓ 2 callersFunction_createConstructor
(schema, baseClass, options)
lib/schema/subdocument.js:72
↓ 2 callersFunction_createDefaultConnection
(mongoose)
lib/mongoose.js:1418
↓ 2 callersFunction_depopulateIfNecessary
(arr, docs)
lib/types/array/methods/index.js:1055
↓ 2 callersFunction_getInitialState
(doc)
lib/plugins/trackTransaction.js:24
↓ 2 callersFunction_getLocalFieldValues
(doc, localField, model, options, virtual, schema)
lib/helpers/populate/getModelsMapForPopulate.js:738
↓ 2 callersFunction_getModelFromConn
(conn, modelName)
lib/helpers/populate/getModelsMapForPopulate.js:700
↓ 2 callersFunction_nextDoc
(ctx, doc, pop, callback)
lib/cursor/queryCursor.js:608
↓ 2 callersFunction_pushNestedArrayPaths
(val, paths, path)
lib/document.js:3274
↓ 2 callersMethod_walk
* Walk `path` through the trie. `path` is assumed to be pre-split - if the * path has multiple segments, pass in an array of strings. Returns `true
lib/helpers/pathTrie.js:114
↓ 2 callersFunctionaddModelNamesToMap
(model, map, available, modelNames, options, data, ret, doc, schemaOptions, unpopulatedValue)
lib/helpers/populate/getModelsMapForPopulate.js:606
↓ 2 callersFunctionapiLinksToMarkdown
* Convert API doc HTML links in a string to their equivalent Markdown file paths. * @param {String} [str] The string containing API documentation lin
docs/source/api.js:234
↓ 2 callersFunctionapplyEmbeddedDiscriminators
(schema, seen = new WeakSet(), overwriteExisting = false)
lib/helpers/discriminator/applyEmbeddedDiscriminators.js:5
↓ 2 callersFunctionapplyGlobalDiskUse
(options, connectionOptions, baseOptions)
lib/helpers/query/applyGlobalOption.js:9
↓ 2 callersFunctionapplyGlobalMaxTimeMS
(options, connectionOptions, baseOptions)
lib/helpers/query/applyGlobalOption.js:5
↓ 2 callersFunctionapplyGlobalOption
(options, connectionOptions, baseOptions, optionName)
lib/helpers/query/applyGlobalOption.js:19
↓ 2 callersFunctionapplyHooks
* Register hooks for this model * * @param {Model} model * @param {Schema} schema * @param {object} options * @api private
lib/helpers/model/applyHooks.js:39
↓ 2 callersFunctionapplyTheme
(theme, skipSetStorage)
docs/js/theme-toggle.js:21
↓ 2 callersFunctionapplyVirtualsToDoc
* Apply virtuals to a given document. Does not apply virtuals to subdocuments: use `applyVirtualsToChildren` instead * * @param {Schema} schema * @
lib/helpers/document/applyVirtuals.js:94
↓ 2 callersFunctionarrayDepth
(arr)
lib/helpers/arrayDepth.js:5
↓ 2 callersMethodautoEncryptionType
* Returns the auto encryption type for this schema type. * * @api public
lib/schema/map.js:141
↓ 2 callersFunctionautoTypedModel
()
test/types/models.test.ts:475
↓ 2 callersFunctionautoTypedSchema
()
test/types/schema.test.ts:378
↓ 2 callersFunctioncastArraysOfNumbers
(arr, self)
lib/schema/operators/helpers.js:24
↓ 2 callersFunctioncheckValidKey
* Since maps are stored as objects under the hood, keys must be strings * and can't contain any invalid characters * @param {string} key * @api pri
lib/types/map.js:352
↓ 2 callersMethodcleanIndexes
(options?: { toDrop?: string[], hideIndexes?: boolean })
types/indexes.d.ts:14
↓ 2 callersFunctionclone
()
test/helpers/clone.test.js:175
↓ 2 callersFunctioncloseToc
()
docs/js/mobile-navbar-toggle.js:20
↓ 2 callersFunctioncompile
* Compiles schemas. * @param {object} tree * @param {any} proto * @param {string} prefix * @param {object} options * @api private
lib/helpers/document/compile.js:41
↓ 2 callersFunctionconvertTo_id
* Retrieve the _id of `val` if a Document or Array of Documents. * * @param {Array|Document|any} val * @param {Schema} schema * @return {Array|Doc
lib/helpers/populate/getModelsMapForPopulate.js:777
↓ 2 callersMethodcopy
* ignore * @param {Readonly<CastError>} other * @api private
lib/error/cast.js:64
↓ 2 callersFunctioncreateEachAsyncMultiError
(aggregatedErrors)
lib/helpers/cursor/eachAsync.js:219
↓ 2 callersMethodcreateSearchIndexes
* Creates all [Atlas search indexes](https://www.mongodb.com/docs/atlas/atlas-search/create-index/) defined in this model's schema. * This functi
types/models.d.ts:348
↓ 2 callersMethodcreateWithFullName
(name: string)
test/types/schema.test.ts:1467
↓ 2 callersFunctiondoSomeThing
(item: Attachment)
test/types/lean.test.ts:252
↓ 2 callersMethoddoSomething
(this: TestDocument)
test/types/plugin.test.ts:46
↓ 2 callersMethoddropSearchIndex
* Delete an existing [Atlas search index](https://www.mongodb.com/docs/atlas/atlas-search/create-index/) by name. * This function only works when
types/models.d.ts:435
↓ 2 callersMethodfindByName
(name: string)
test/types/plugin.test.ts:101
↓ 2 callersFunctionflatten
(item)
lib/model.js:4541
↓ 2 callersFunctionformat
(obj, sub, color, shell)
lib/drivers/node-mongodb-native/collection.js:340
↓ 2 callersFunctionformatMessage
(model, kind, value, path, messageFormat, valueType, reason)
lib/error/cast.js:123
↓ 2 callersFunctiongenerateLLMsTXT
* Generate llms.txt from the docs file map and parsed API docs. * @returns {Promise<void>}
scripts/generateLLMsTXT.js:89
↓ 2 callersMethodgetAnswer
()
test/types/methods.test.ts:8
↓ 2 callersFunctiongetDefaultBulkwriteResult
()
lib/helpers/getDefaultBulkwriteResult.js:3
↓ 2 callersFunctiongetLatestVersion
* Get the latest version available * @returns {Version}
scripts/website.js:264
↓ 2 callersFunctiongetMessageFormat
(schemaType)
lib/error/cast.js:112
↓ 2 callersFunctiongetPositionalPathType
* ignore. Deprecated re: #6405 * @param {any} self * @param {string} path * @api private
lib/schema.js:2022
↓ 2 callersFunctiongetRelatedDBIndexes
(model, dbIndexes)
lib/helpers/indexes/getRelatedIndexes.js:14
↓ 2 callersFunctiongetRelatedIndexes
({ baseModelName, discriminatorMapping, indexes, indexesType })
lib/helpers/indexes/getRelatedIndexes.js:28
↓ 2 callersFunctiongetRelatedSchemaIndexes
(model, schemaIndexes)
lib/helpers/indexes/getRelatedIndexes.js:5
↓ 2 callersFunctiongetStringValue
(value)
lib/error/cast.js:88
↓ 2 callersFunctiongetTypeName
(obj)
test/model.middleware.preposttypes.test.js:23
↓ 2 callersFunctiongetValueType
(value)
lib/error/cast.js:97
↓ 2 callersFunctionidGetter
* Returns this documents _id cast to a string. * @api private
lib/helpers/schema/idGetter.js:28
↓ 2 callersFunctioninspect
* Helper for console.log * * @api public * @method inspect * @memberOf MongooseArray
lib/types/array/methods/index.js:566
↓ 2 callersMethodinspect
* inspect helper * @api private
lib/error/setOptionError.js:37
↓ 2 callersMethodisAdult
()
test/types/schema.test.ts:1379
↓ 2 callersFunctionisArrayFilter
(piece)
lib/schema.js:3125
↓ 2 callersFunctionisEncryptedValue
* @param {object} object * @param {string} property
test/encryption/encryption.test.js:36
↓ 2 callersFunctionisPromise
(val)
lib/helpers/isPromise.js:2
↓ 2 callersMethodlistSearchIndexes
* List all [Atlas search indexes](https://www.mongodb.com/docs/atlas/atlas-search/create-index/) on this model's collection. * This function only
types/models.d.ts:661
↓ 2 callersFunctionmapSubDoc
* Map sub-directories with custom options * @param {String} subDoc Path to the subdoc, like "tutorials" (no beginning or ending slash) * @param {Doc
docs/source/utils.js:14
↓ 2 callersMethodmatchesPathOrAncestor
* Check if `path` or any of its ancestor paths exist in the trie. `path` is * either a single segment string or a pre-split array of segments — loo
lib/helpers/pathTrie.js:85
↓ 2 callersFunctionminimize
* Minimizes an object, removing undefined values and empty objects * * @param {object} object to minimize * @return {object|undefined} * @api priv
lib/helpers/minimize.js:15
↓ 2 callersFunctionmodifiedPaths
(update, path, result, recursion = null)
lib/helpers/common.js:72
↓ 2 callersFunctionopenPanel
()
docs/js/ask-ai.js:124
↓ 2 callersFunctionoperand
* Apply the operation to the delta (update) clause as * well as track versioning for our where clause. * * @param {Document} self * @param {object
lib/document.js:5447
↓ 2 callersMethodoverlapsPath
* Check if `path`, any of its ancestor paths, or any of its descendant paths * exist in the trie. `path` is either a single segment string or a pre
lib/helpers/pathTrie.js:100
↓ 2 callersFunctionparallelLimit
(params, fn, limit)
lib/helpers/parallelLimit.js:11
↓ 2 callersMethodpurge
()
test/connection_server.js:66
↓ 2 callersFunctionrenderAllFiles
* Render all files at once * @param {Boolean} noWatch Set whether to start file watchers for reload * @param {Boolean} isReload Indicate this is a r
scripts/website.js:635
↓ 2 callersFunctionrenderFile
* Render a given file with the given options * @param {String} filename The documentation file path to render * @param {import("../docs/source/index
scripts/website.js:464
↓ 2 callersFunctionsearch
(re)load results
docs/js/search.js:43
↓ 2 callersMethodsession
Sets the session. Useful for [transactions](/docs/transactions.html).
types/session.d.ts:16
↓ 2 callersFunctionshouldFlatten
(val)
lib/helpers/common.js:118
↓ 2 callersFunctionsplitPopulateQuery
(mod, ids, select, assignmentOpts)
lib/helpers/populate/splitPopulateQuery.js:43
↓ 2 callersFunctiontest
(check, fn)
test/model.populate.divergent.test.js:49
↓ 2 callersFunctionthrowOn$where
* Throw an error if there are any $where keys to defend against [CVE-2024-53900](https://nvd.nist.gov/vuln/detail/CVE-2024-53900) * * Note that this
lib/helpers/populate/getModelsMapForPopulate.js:881
↓ 2 callersMethodtoBSON
()
test/helpers/clone.test.js:211
↓ 2 callersMethoduseConnection
* Changes the Connection instance this model uses to make requests to MongoDB. * This function is most useful for changing the Connection that a
types/models.d.ts:693
↓ 2 callersFunctionuserLiteral
(name)
test/model.populate.setting.test.js:108
↓ 2 callersFunctionvalidate
(val)
test/model.test.js:788
↓ 2 callersMethodwrite
(chunk)
test/index.test.js:77
↓ 1 callersMethod$__runDeferred
()
lib/types/map.js:276
↓ 1 callersFunction$applyDefaultsToNested
(val, path, doc)
lib/document.js:488
↓ 1 callersMethod$where
Adds a `$where` clause to this query
types/models.d.ts:705
↓ 1 callersFunctionInternalItemSchemaGen
()
test/model.populate.test.js:9044
↓ 1 callersFunctionMongooseArray
(values, path, doc, schematype)
lib/types/array/index.js:32
↓ 1 callersFunctionTestDoc
* Setup.
test/types.documentarray.test.js:23
← previousnext →101–200 of 1,456, ranked by callers