MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

↓ 1 callersFunctiongetUserModel
()
test/document.test.js:10621
↓ 1 callersFunctiongetValidationCallback
(arrayUpdate, validationErrors, callback)
lib/helpers/updateValidators.js:239
↓ 1 callersFunctiongetVersions
()
scripts/website.js:182
↓ 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/model.js:644
↓ 1 callersFunctionhandleNextResult
(doc, i, callback)
lib/helpers/cursor/eachAsync.js:170
↓ 1 callersFunctionhandleRefFunction
(ref, doc)
lib/helpers/populate/getModelsMapForPopulate.js:592
↓ 1 callersFunctionhandleSuccessfulWrite
(document)
lib/model.js:3654
↓ 1 callersMethodhasNext
(cb)
lib/cursor/ChangeStream.js:88
↓ 1 callersFunctionhex2buffer
* Helper function to convert the input hex-string to a buffer * @param {String} hex The hex string to convert * @returns {Buffer} The hex as buffer
lib/schema/uuid.js:23
↓ 1 callersFunctionindexSingleDone
(err, fields, options, name)
lib/model.js:1756
↓ 1 callersFunctionindexSingleStart
(fields, options)
lib/model.js:1759
↓ 1 callersMethodinit
(type, value, path, reason, schemaType)
lib/error/cast.js:48
↓ 1 callersFunctioninitializeData
()
test/query.middleware.test.js:25
↓ 1 callersMethodinsertMany
(elems: T[])
test/types/models.test.ts:749
↓ 1 callersFunctionis
(tj)
test/types.buffer.test.js:182
↓ 1 callersFunctionisLean
(document)
test/model.test.js:7499
↓ 1 callersFunctionisLean
test/model.populate.test.js:6569
↓ 1 callersFunctionisModified
(modified, path)
lib/helpers/setDefaultsOnInsert.js:104
↓ 1 callersFunctionisParentInit
(path)
lib/document.js:3422
↓ 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:335
↓ 1 callersFunctionisPromise
(val)
lib/helpers/isPromise.js:2
↓ 1 callersFunctioniter
(i, v)
lib/helpers/updateValidators.js:92
↓ 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:93
↓ 1 callersFunctioniter
(c)
benchmarks/benchjs/population.js:262
↓ 1 callersFunctioniterate
(finalCallback)
lib/helpers/cursor/eachAsync.js:66
↓ 1 callersFunctionjsfy
(obj)
test/model.middleware.preposttypes.test.js:49
↓ 1 callersFunctionlog
()
benchmarks/index.js:5
↓ 1 callersFunctionmain
()
scripts/static.js:12
↓ 1 callersFunctionmakeLean
* Set each path query option to lean * * @param {Object} option
lib/queryhelpers.js:390
↓ 1 callersFunctionmakeSingles
(arr)
lib/utils.js:550
↓ 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:346
↓ 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:318
↓ 1 callersFunctionmergeAtomics
(destination, source)
lib/plugins/trackTransaction.js:74
↓ 1 callersFunctionminimize
* Minimizes an object, removing undefined values and empty objects * * @param {Object} object to minimize * @return {Object} * @api private
lib/document.js:4014
↓ 1 callersFunctionmoveDocsToTemp
()
scripts/website.js:132
↓ 1 callersMethodmyMethod
()
test/types/models.test.ts:163
↓ 1 callersMethodmyStatic
()
test/types/models.test.ts:167
↓ 1 callersFunctionnewBuffer
(initbuff)
lib/schema/uuid.js:122
↓ 1 callersFunctionnext
()
benchmarks/benchjs/population.js:407
↓ 1 callersFunctionnext
()
benchmarks/benchjs/multiop.js:478
↓ 1 callersFunctionnext
()
benchmarks/benchjs/delete.js:132
↓ 1 callersFunctionnext
()
benchmarks/benchjs/read.js:315
↓ 1 callersFunctionnot
(tj)
test/types.buffer.test.js:178
↓ 1 callersFunctionnumDocs
(v)
lib/helpers/populate/assignVals.js:207
↓ 1 callersFunctionomitDeselectedFields
(self, json)
lib/document.js:4246
↓ 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:49
↓ 1 callersFunctionparseAllFiles
* Parse all files defined in "files"
docs/source/api.js:217
↓ 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:228
↓ 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:163
↓ 1 callersFunctionpick
(obj, keys)
test/model.test.js:7507
↓ 1 callersFunctionplugin
()
test/model.discriminator.test.js:1325
↓ 1 callersFunctionpluralize
* Pluralize function. * * @author TJ Holowaychuk (extracted from _ext.js_) * @param {String} string to pluralize * @api private
lib/helpers/pluralize.js:83
↓ 1 callersFunctionpopulate
(model, docs, options, callback)
lib/model.js:4371
↓ 1 callersFunctionpost
(error, res)
lib/helpers/model/applyStaticHooks.js:50
↓ 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:3174
↓ 1 callersFunctionprocessConnectionOptions
(uri, options)
lib/helpers/processConnectionOptions.js:6
↓ 1 callersFunctionprocessFile
(props)
docs/source/api.js:242
↓ 1 callersFunctionprocessName
* Process a file name to a documentation name * @param {string} input * @returns {NameObj}
docs/source/api.js:162
↓ 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:423
↓ 1 callersFunctionreset
(model)
test/types.buffer.test.js:360
↓ 1 callersFunctionresolveOptsConflicts
(pref, opts)
lib/helpers/processConnectionOptions.js:20
↓ 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/generateSearch.js:128
↓ 1 callersFunctionrun
()
examples/statics/statics.js:14
↓ 1 callersFunctionrun
(label, fn)
benchmarks/index.js:48
↓ 1 callersFunctionrun
()
benchmarks/mapOfSubdocs.js:10
↓ 1 callersFunctionrun
()
benchmarks/get.js:10
↓ 1 callersFunctionsanitizeValue
(value)
lib/query.js:1082
↓ 1 callersFunctionsave
(doc)
test/types.array.test.js:146
↓ 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:543
↓ 1 callersFunctionsearch
(parts, schema)
lib/schema.js:2566
↓ 1 callersFunctionsearch
(parts, schema, subdoc, nestedPath)
lib/helpers/populate/getSchemaTypes.js:49
↓ 1 callersFunctionsetDefaultOptions
()
lib/model.js:3864
↓ 1 callersMethodsetModel
(model)
lib/error/cast.js:77
↓ 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:20
↓ 1 callersFunctionshouldSkipVersioning
* Determines whether versioning should be skipped for the given path * * @param {Document} self * @param {String} path * @return {Boolean} true if
lib/model.js:554
↓ 1 callersFunctionslugGenerator
* Plugins
examples/schema/schema.js:102
↓ 1 callersFunctionstartWatch
extra function to start watching for file-changes, without having to call this file directly with "watch"
scripts/website.js:486
↓ 1 callersMethodstop
()
test/connection_server.js:47
↓ 1 callersFunctionstringToBinary
* Convert a String to Binary * @param {String} uuidStr The value to process * @returns {MongooseBuffer} The binary to store * @api private
lib/schema/uuid.js:49
↓ 1 callersFunctiontest
(mongoose)
test/index.test.js:844
↓ 1 callersFunctiontestFails
(fn)
test/model.populate.divergent.test.js:74
↓ 1 callersFunctiontestOk
(fn)
test/model.populate.divergent.test.js:70
↓ 1 callersFunctionthrowErrorIfPromise
(path, transformedValue)
lib/document.js:4236
↓ 1 callersFunctionthrowReadPreferenceError
()
lib/helpers/processConnectionOptions.js:56
↓ 1 callersMethodtoBSON
()
test/helpers/clone.test.js:211
↓ 1 callersFunctiontoObject
* Returns a native js Array. * * @param {Object} options * @return {Array} * @api public * @method toObject * @memberOf MongooseArra
lib/types/array/methods/index.js:886
↓ 1 callersFunctiontoggleAll
(e)
docs/js/mobile-navbar-toggle.js:28
← previousnext →401–500 of 1,018, ranked by callers