MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,434 in github.com/Automattic/mongoose

↓ 1 callersFunctionregisterHooks
(expThisType /* QUERY, DOC, UNION, NEVER */, method /* save, updateOne etc. */, options/* ? {document,query}
test/model.middleware.preposttypes.test.js:82
↓ 1 callersFunctionregisterRemoveListener
* Registers remove event listeners for triggering * on subdocuments. * * @param {Subdocument} sub * @api private
lib/types/subdocument.js:433
↓ 1 callersFunctionrenderMarkdown
(element, markdown)
docs/js/ask-ai.js:210
↓ 1 callersFunctionrenderSources
(message, sources)
docs/js/ask-ai.js:228
↓ 1 callersFunctionreset
(model)
test/types.buffer.test.js:360
↓ 1 callersFunctionresolveOptsConflicts
(pref, opts)
lib/helpers/processConnectionOptions.js:20
↓ 1 callersFunctionrestoreUnsavedState
(doc, unsavedDirty, unsavedDefaultPaths)
lib/model.js:569
↓ 1 callersFunctionrun
()
tools/sharded.js:9
↓ 1 callersFunctionrun
()
tools/repl.js:8
↓ 1 callersFunctionrun
()
tools/auth.js:11
↓ 1 callersFunctionrun
()
test/types/aggregate.test.ts:21
↓ 1 callersFunctionrun
()
scripts/loadSponsorData.js:24
↓ 1 callersFunctionrun
()
scripts/setup-encryption-tests.js:33
↓ 1 callersFunctionrun
()
benchmarks/insertManySimple.js:11
↓ 1 callersFunctionrun
()
benchmarks/saveSimple.js:11
↓ 1 callersFunctionrun
()
benchmarks/createDeepNestedDocArray.js:10
↓ 1 callersFunctionrun
()
benchmarks/findOneWithCast.js:10
↓ 1 callersFunctionrun
()
benchmarks/recursiveToObject.js:10
↓ 1 callersFunctionrun
()
benchmarks/mapOfSubdocs.js:10
↓ 1 callersFunctionrun
()
benchmarks/findOneAndUpdateSimple.js:11
↓ 1 callersFunctionrun
()
benchmarks/get.js:10
↓ 1 callersFunctionrun
()
benchmarks/nestedArrayLarge.js:10
↓ 1 callersFunctionsanitizeMarkdownHtml
(html)
docs/js/ask-ai.js:219
↓ 1 callersFunctionsanitizeValue
(value)
lib/query.js:1149
↓ 1 callersFunctionsave
(doc)
test/types.array.test.js:146
↓ 1 callersFunctionschemaHasEncryptedProperty
* * @param {import('../lib').Schema} object * @param {Array<string> | string} path * @returns { boolean }
test/encryptedSchema.test.js:17
↓ 1 callersFunctionscopePaths
* Scopes paths selected in a query to this array. * Necessary for proper default application of subdocument values. * * @param {DocumentArrayPath}
lib/schema/documentArray.js:544
↓ 1 callersFunctionscrollActiveSidebarLinkIntoView
()
docs/js/sidebar-collapse.js:4
↓ 1 callersFunctionsearch
(parts, schema)
lib/schema.js:2933
↓ 1 callersFunctionsearch
(parts, schema, subdoc, nestedPath)
lib/helpers/populate/getSchemaTypes.js:49
↓ 1 callersFunctionsetActive
(target)
docs/js/toc.js:43
↓ 1 callersFunctionsetCollapsed
(collapsed)
docs/js/sidebar-collapse.js:26
↓ 1 callersFunctionsetDefaultOptions
()
lib/model.js:3980
↓ 1 callersFunctionsetIntersection
* @param {Iterable<string>} i1 * @param {Iterable<string>} i2
lib/helpers/model/discriminator.js:56
↓ 1 callersFunctionsetLoading
(isLoading)
docs/js/ask-ai.js:171
↓ 1 callersMethodsetModel
(model)
lib/error/cast.js:78
↓ 1 callersFunctionsetOpen
(open)
docs/js/version-picker.js:10
↓ 1 callersFunctionsetStatus
(resultsDiv, message, isError)
docs/js/search.js:120
↓ 1 callersFunctionsetValue
(val)
lib/helpers/populate/assignVals.js:44
↓ 1 callersFunctionsetsIndexOptions
(opts)
lib/helpers/processConnectionOptions.js:33
↓ 1 callersFunctionsetsSecondaryRead
(prefString)
lib/helpers/processConnectionOptions.js:39
↓ 1 callersFunctionsetupData
* Test data
test/aggregate.test.js:21
↓ 1 callersFunctionshouldSkipVersioning
* Determines whether versioning should be skipped for the given path * * @param {Document} self * @param {string} path * @return {boolean} true if
lib/document.js:5596
↓ 1 callersFunctionshouldTrace
(channel)
lib/tracing.js:14
↓ 1 callersFunctionslug
(text)
docs/js/toc.js:19
↓ 1 callersFunctionstartWatch
extra function to start watching for file-changes, without having to call this file directly with "watch"
scripts/website.js:602
↓ 1 callersMethodstop
()
test/connection_server.js:47
↓ 1 callersFunctionsubmitQuestion
(value)
docs/js/ask-ai.js:65
↓ 1 callersFunctionsubscribe
(channelName, handlers)
test/tracing.test.js:7
↓ 1 callersFunctiontest
(mongoose)
test/index.test.js:891
↓ 1 callersFunctiontestFails
(fn)
test/model.populate.divergent.test.js:74
↓ 1 callersFunctiontestFn
(parent: IParent)
test/types/lean.test.ts:336
↓ 1 callersFunctiontestOk
(fn)
test/model.populate.divergent.test.js:70
↓ 1 callersFunctionthrowErrorIfPromise
(path, transformedValue)
lib/document.js:4593
↓ 1 callersFunctionthrowReadPreferenceError
()
lib/helpers/processConnectionOptions.js:56
↓ 1 callersFunctiontimeStringToObject
(time)
test/document.test.js:6865
↓ 1 callersFunctiontimeStringToObject
(time: string)
test/types/schema.create.test.ts:1852
↓ 1 callersFunctiontimeStringToObject
(time: string)
test/types/schema.test.ts:1891
↓ 1 callersFunctiontoObject
* Returns a native js Array. * * @param {object} options * @return {Array} * @api public * @method toObject * @memberOf MongooseArra
lib/types/array/methods/index.js:926
↓ 1 callersFunctiontoObjectWithBaseTyping
(input: T)
test/types/populate.test.ts:480
↓ 1 callersFunctiontoggleMenu
(e)
docs/js/mobile-navbar-toggle.js:29
↓ 1 callersFunctiontransform
(doc, ret)
test/document.test.js:888
↓ 1 callersFunctiontranslate
(key, value)
lib/model.js:1948
↓ 1 callersFunctionupdate
()
docs/js/toc.js:50
↓ 1 callersMethodupdateSearchIndex
* Update an existing [Atlas search index](https://www.mongodb.com/docs/atlas/atlas-search/create-index/). * This function only works when connect
types/models.d.ts:662
↓ 1 callersFunctionuseChildDoc
(child: Child)
test/types/populate.test.ts:44
↓ 1 callersFunctionuser
(name)
test/model.populate.setting.test.js:112
↓ 1 callersFunctionvalidateDiscriminatorSchemasForEncryption
* Validate fields declared on the child schema when either schema is configured for encryption. Specifically, this function ensures that: * * - any
lib/helpers/model/discriminator.js:30
↓ 1 callersFunctionvalidateRef
(ref, path)
lib/helpers/populate/validateRef.js:8
↓ 1 callersFunctionvalueFilter
* 1) Apply backwards compatible find/findOne behavior to sub documents * * find logic: * a) filter out non-documents * b) remove _id
lib/helpers/populate/assignVals.js:267
↓ 1 callersFunctionwait
()
test/docs/asyncIterator.test.js:35
↓ 1 callersFunctionwalkSubdocs
(currentSubdoc, indexedPathPrefix, segmentIndex)
lib/helpers/populate/getModelsMapForPopulate.js:383
↓ 1 callersFunctionwalkUpdatePath
* Walk each path of obj and cast its values * according to its schema. * * @param {Schema} schema * @param {object} obj part of a query * @param
lib/helpers/query/castUpdate.js:221
↓ 1 callersMethodwhereSomething
(this: TestQuery)
test/types/plugin.test.ts:54
↓ 1 callersMethodwhoAmI
()
test/schema.test.js:2988
↓ 1 callersMethodwhoAmI
()
test/model.test.js:9186
↓ 1 callersMethodwhoAmI
()
test/document.test.js:14164
↓ 1 callersFunctionwireup
()
lib/drivers/node-mongodb-native/connection.js:111
↓ 1 callersFunctionworker
()
lib/helpers/parallelLimit.js:34
↓ 1 callersFunctionwrapMarkdown
(md, baseLayout, versionedPath, markdownUrl)
scripts/website.js:355
Function$__getAtomics
* Depopulates stored atomic operation values as necessary for direct insertion to MongoDB. * * If no atomics exist, we return all array values a
lib/types/array/methods/index.js:40
Function$atomics
()
lib/types/array/methods/index.js:113
Function$parent
()
lib/types/array/methods/index.js:121
Function$path
()
lib/types/array/methods/index.js:129
Function$pop
()
lib/types/documentArray/methods/index.js:252
Function$pop
* Pops the array atomically at most one time per document `save()`. * * #### NOTE: * * _Calling this multiple times on an array before sav
lib/types/array/methods/index.js:224
Function$schema
()
lib/types/array/methods/index.js:241
Function$schemaType
()
lib/types/documentArray/methods/index.js:47
Function$schemaType
()
lib/types/array/methods/index.js:136
Function$shift
()
lib/types/documentArray/methods/index.js:296
Function$shift
* Atomically shifts the array at most one time per document `save()`. * * #### Note: * * _Calling this multiple times on an array before s
lib/types/array/methods/index.js:174
Function$toObject
()
lib/types/documentArray/methods/index.js:210
Function$toObject
()
lib/types/array/methods/index.js:943
FunctionActivityBaseSchema
()
test/model.discriminator.test.js:440
FunctionAggregate
* Aggregate constructor used for building aggregation pipelines. Do not * instantiate this class directly, use [Model.aggregate()](https://mongoosejs
lib/aggregate.js:57
FunctionAggregationCursor
* An AggregationCursor is a concurrency primitive for processing aggregation * results one document at a time. It is analogous to QueryCursor. * *
lib/cursor/aggregationCursor.js:38
FunctionArraySubdocument
* A constructor. * * @param {object} obj js object returned from the db * @param {MongooseDocumentArray} parentArr the parent array of this documen
lib/types/arraySubdocument.js:25
FunctionBaseSchema
* Setup
test/model.discriminator.querying.test.js:18
FunctionBaseSchema
()
test/model.discriminator.test.js:275
FunctionBossBaseSchema
()
test/model.discriminator.test.js:101
← previousnext →501–600 of 1,434, ranked by callers