MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,512 in github.com/Automattic/mongoose

↓ 1 callersFunctionmakeSingles
(arr)
lib/utils.js:605
↓ 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:412
↓ 1 callersFunctionmatchIdsToRefPaths
(ids, refPaths, refPathToFind)
lib/helpers/populate/getModelsMapForPopulate.js:710
↓ 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 callersFunctionmeasure
(Model, count)
benchmarks/hydrateComplex.js:111
↓ 1 callersFunctionmeasure
(Model, _id, runValidators, count)
benchmarks/findOneAndUpdateDocArrayValidators.js:73
↓ 1 callersFunctionmeasure
(count)
benchmarks/createSimpleMap.js:22
↓ 1 callersFunctionmedian
(values)
benchmarks/hydrateComplex.js:128
↓ 1 callersFunctionmedian
(values)
benchmarks/findOneAndUpdateDocArrayValidators.js:87
↓ 1 callersFunctionmedian
(values)
benchmarks/createSimpleMap.js:38
↓ 1 callersFunctionmergeAtomics
(destination, source)
lib/plugins/trackTransaction.js:83
↓ 1 callersFunctionmoveDocsToTemp
()
scripts/website.js:159
↓ 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:181
↓ 1 callersFunctionnumDocs
(v)
lib/helpers/populate/assignVals.js:223
↓ 1 callersFunctionomitDeselectedFields
(self, json)
lib/document.js:4684
↓ 1 callersFunctiononPreComplete
(err)
lib/cursor/queryCursor.js:59
↓ 1 callersFunctiononPreComplete
(err)
lib/cursor/aggregationCursor.js:80
↓ 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:51
↓ 1 callersFunctionparseAllFiles
* Parse all files defined in "files"
docs/source/api.js:348
↓ 1 callersFunctionparseEvent
(rawEvent, onEvent)
docs/js/ask-ai.js:225
↓ 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:191
↓ 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:3415
↓ 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:204
↓ 1 callersMethodrecompileSchema
Apply changes made to this model's schema after this model was compiled.
types/models.d.ts:1706
↓ 1 callersFunctionrecordFindReadOptions
(...models)
test/model.populate.test.js:3711
↓ 1 callersFunctionredirectToBase
()
docs/js/redirect-old-api.js:28
↓ 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:437
↓ 1 callersFunctionrenderMarkdown
(element, markdown)
docs/js/ask-ai.js:237
↓ 1 callersFunctionrenderSources
(message, sources)
docs/js/ask-ai.js:255
↓ 1 callersFunctionrequestResponse
(question, previousId)
docs/js/ask-ai.js:130
↓ 1 callersFunctionreset
(model)
test/types.buffer.test.js:363
↓ 1 callersFunctionresolveOptsConflicts
(pref, opts)
lib/helpers/processConnectionOptions.js:20
↓ 1 callersFunctionrestoreUnsavedState
(doc, unsavedDirty, unsavedDefaultPaths)
lib/model.js:571
↓ 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/findOneAndUpdateDocArrayValidators.js:21
↓ 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:246
↓ 1 callersFunctionsanitizeValue
(value)
lib/query.js:1145
↓ 1 callersFunctionsave
(doc)
test/types.array.test.js:174
↓ 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:577
↓ 1 callersFunctionscrollActiveSidebarLinkIntoView
()
docs/js/sidebar-collapse.js:4
↓ 1 callersFunctionsearch
(parts, schema)
lib/schema.js:3095
↓ 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:4059
↓ 1 callersFunctionsetIntersection
* @param {Iterable<string>} i1 * @param {Iterable<string>} i2
lib/helpers/model/discriminator.js:56
↓ 1 callersFunctionsetLoading
(isLoading)
docs/js/ask-ai.js:198
↓ 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:22
↓ 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:5677
↓ 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:597
↓ 1 callersMethodstop
()
test/connection_server.js:47
↓ 1 callersFunctionsubmitQuestion
(value)
docs/js/ask-ai.js:66
↓ 1 callersFunctionsubscribe
(channelName, handlers)
test/tracing.test.js:7
↓ 1 callersFunctiontest
(mongoose)
test/index.test.js:967
↓ 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:4674
↓ 1 callersFunctionthrowReadPreferenceError
()
lib/helpers/processConnectionOptions.js:61
↓ 1 callersFunctiontimeStringToObject
(time)
test/document.test.js:6565
↓ 1 callersFunctiontimeStringToObject
(time: string)
test/types/schema.create.test.ts:1852
↓ 1 callersFunctiontimeStringToObject
(time: string)
test/types/schema.test.ts:1889
↓ 1 callersFunctiontoObject
* Returns a native js Array. * * @param {object} options * @return {Array} * @api public * @method toObject * @memberOf MongooseArra
lib/types/array/methods/index.js:935
↓ 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:885
↓ 1 callersFunctiontranslate
(key, value)
lib/model.js:1951
← previousnext →501–600 of 1,512, ranked by callers