Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,018 in github.com/Automattic/mongoose
⨍
Functions
1,018
◇
Types & classes
646
↓ 1 callers
Function
getUserModel
()
test/document.test.js:10621
↓ 1 callers
Function
getValidationCallback
(arrayUpdate, validationErrors, callback)
lib/helpers/updateValidators.js:239
↓ 1 callers
Function
getVersions
()
scripts/website.js:182
↓ 1 callers
Function
gh12537
()
test/types/mongo.test.ts:5
↓ 1 callers
Function
handleAccumulator
(operator)
lib/helpers/aggregate/stringifyFunctionOperators.js:40
↓ 1 callers
Function
handleAtomics
* 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 callers
Function
handleNextResult
(doc, i, callback)
lib/helpers/cursor/eachAsync.js:170
↓ 1 callers
Function
handleRefFunction
(ref, doc)
lib/helpers/populate/getModelsMapForPopulate.js:592
↓ 1 callers
Function
handleSuccessfulWrite
(document)
lib/model.js:3654
↓ 1 callers
Method
hasNext
(cb)
lib/cursor/ChangeStream.js:88
↓ 1 callers
Function
hex2buffer
* 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 callers
Function
indexSingleDone
(err, fields, options, name)
lib/model.js:1756
↓ 1 callers
Function
indexSingleStart
(fields, options)
lib/model.js:1759
↓ 1 callers
Method
init
(type, value, path, reason, schemaType)
lib/error/cast.js:48
↓ 1 callers
Function
initializeData
()
test/query.middleware.test.js:25
↓ 1 callers
Method
insertMany
(elems: T[])
test/types/models.test.ts:749
↓ 1 callers
Function
is
(tj)
test/types.buffer.test.js:182
↓ 1 callers
Function
isLean
(document)
test/model.test.js:7499
↓ 1 callers
Function
isLean
test/model.populate.test.js:6569
↓ 1 callers
Function
isModified
(modified, path)
lib/helpers/setDefaultsOnInsert.js:104
↓ 1 callers
Function
isParentInit
(path)
lib/document.js:3422
↓ 1 callers
Function
isPathInFields
(userProvidedFields, path)
lib/helpers/query/selectPopulatedFields.js:51
↓ 1 callers
Function
isPopulatedObject
* 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 callers
Function
isPromise
(val)
lib/helpers/isPromise.js:2
↓ 1 callers
Function
iter
(i, v)
lib/helpers/updateValidators.js:92
↓ 1 callers
Function
iter
* 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 callers
Function
iter
(c)
benchmarks/benchjs/population.js:262
↓ 1 callers
Function
iterate
(finalCallback)
lib/helpers/cursor/eachAsync.js:66
↓ 1 callers
Function
jsfy
(obj)
test/model.middleware.preposttypes.test.js:49
↓ 1 callers
Function
log
()
benchmarks/index.js:5
↓ 1 callers
Function
main
()
scripts/static.js:12
↓ 1 callers
Function
makeLean
* Set each path query option to lean * * @param {Object} option
lib/queryhelpers.js:390
↓ 1 callers
Function
makeSingles
(arr)
lib/utils.js:550
↓ 1 callers
Function
mapURLs
* 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 callers
Function
maybeRemoveId
* 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 callers
Function
mergeAtomics
(destination, source)
lib/plugins/trackTransaction.js:74
↓ 1 callers
Function
minimize
* Minimizes an object, removing undefined values and empty objects * * @param {Object} object to minimize * @return {Object} * @api private
lib/document.js:4014
↓ 1 callers
Function
moveDocsToTemp
()
scripts/website.js:132
↓ 1 callers
Method
myMethod
()
test/types/models.test.ts:163
↓ 1 callers
Method
myStatic
()
test/types/models.test.ts:167
↓ 1 callers
Function
newBuffer
(initbuff)
lib/schema/uuid.js:122
↓ 1 callers
Function
next
()
benchmarks/benchjs/population.js:407
↓ 1 callers
Function
next
()
benchmarks/benchjs/multiop.js:478
↓ 1 callers
Function
next
()
benchmarks/benchjs/delete.js:132
↓ 1 callers
Function
next
()
benchmarks/benchjs/read.js:315
↓ 1 callers
Function
not
(tj)
test/types.buffer.test.js:178
↓ 1 callers
Function
numDocs
(v)
lib/helpers/populate/assignVals.js:207
↓ 1 callers
Function
omitDeselectedFields
(self, json)
lib/document.js:4246
↓ 1 callers
Function
onlyTestAtOrAbove
* 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 callers
Function
parseAllFiles
* Parse all files defined in "files"
docs/source/api.js:217
↓ 1 callers
Function
parseFile
* 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 callers
Function
parseVersion
* 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 callers
Function
pick
(obj, keys)
test/model.test.js:7507
↓ 1 callers
Function
plugin
()
test/model.discriminator.test.js:1325
↓ 1 callers
Function
pluralize
* Pluralize function. * * @author TJ Holowaychuk (extracted from _ext.js_) * @param {String} string to pluralize * @api private
lib/helpers/pluralize.js:83
↓ 1 callers
Function
populate
(model, docs, options, callback)
lib/model.js:4371
↓ 1 callers
Function
post
(error, res)
lib/helpers/model/applyStaticHooks.js:50
↓ 1 callers
Function
prepareDiscriminatorCriteria
* 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 callers
Function
processConnectionOptions
(uri, options)
lib/helpers/processConnectionOptions.js:6
↓ 1 callers
Function
processFile
(props)
docs/source/api.js:242
↓ 1 callers
Function
processName
* Process a file name to a documentation name * @param {string} input * @returns {NameObj}
docs/source/api.js:162
↓ 1 callers
Function
redirectToBase
()
docs/js/redirect-old-api.js:28
↓ 1 callers
Function
registerHooks
(expThisType /* QUERY, DOC, UNION, NEVER */, method /* save, updateOne etc. */, options/* ? {document,query}
test/model.middleware.preposttypes.test.js:82
↓ 1 callers
Function
registerRemoveListener
* Registers remove event listeners for triggering * on subdocuments. * * @param {Subdocument} sub * @api private
lib/types/subdocument.js:423
↓ 1 callers
Function
reset
(model)
test/types.buffer.test.js:360
↓ 1 callers
Function
resolveOptsConflicts
(pref, opts)
lib/helpers/processConnectionOptions.js:20
↓ 1 callers
Function
run
()
tools/sharded.js:9
↓ 1 callers
Function
run
()
tools/repl.js:8
↓ 1 callers
Function
run
()
tools/auth.js:11
↓ 1 callers
Function
run
()
test/types/aggregate.test.ts:21
↓ 1 callers
Function
run
()
scripts/loadSponsorData.js:24
↓ 1 callers
Function
run
()
scripts/generateSearch.js:128
↓ 1 callers
Function
run
()
examples/statics/statics.js:14
↓ 1 callers
Function
run
(label, fn)
benchmarks/index.js:48
↓ 1 callers
Function
run
()
benchmarks/mapOfSubdocs.js:10
↓ 1 callers
Function
run
()
benchmarks/get.js:10
↓ 1 callers
Function
sanitizeValue
(value)
lib/query.js:1082
↓ 1 callers
Function
save
(doc)
test/types.array.test.js:146
↓ 1 callers
Function
scopePaths
* 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 callers
Function
search
(parts, schema)
lib/schema.js:2566
↓ 1 callers
Function
search
(parts, schema, subdoc, nestedPath)
lib/helpers/populate/getSchemaTypes.js:49
↓ 1 callers
Function
setDefaultOptions
()
lib/model.js:3864
↓ 1 callers
Method
setModel
(model)
lib/error/cast.js:77
↓ 1 callers
Function
setValue
(val)
lib/helpers/populate/assignVals.js:44
↓ 1 callers
Function
setsIndexOptions
(opts)
lib/helpers/processConnectionOptions.js:33
↓ 1 callers
Function
setsSecondaryRead
(prefString)
lib/helpers/processConnectionOptions.js:39
↓ 1 callers
Function
setupData
* Test data
test/aggregate.test.js:20
↓ 1 callers
Function
shouldSkipVersioning
* 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 callers
Function
slugGenerator
* Plugins
examples/schema/schema.js:102
↓ 1 callers
Function
startWatch
extra function to start watching for file-changes, without having to call this file directly with "watch"
scripts/website.js:486
↓ 1 callers
Method
stop
()
test/connection_server.js:47
↓ 1 callers
Function
stringToBinary
* 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 callers
Function
test
(mongoose)
test/index.test.js:844
↓ 1 callers
Function
testFails
(fn)
test/model.populate.divergent.test.js:74
↓ 1 callers
Function
testOk
(fn)
test/model.populate.divergent.test.js:70
↓ 1 callers
Function
throwErrorIfPromise
(path, transformedValue)
lib/document.js:4236
↓ 1 callers
Function
throwReadPreferenceError
()
lib/helpers/processConnectionOptions.js:56
↓ 1 callers
Method
toBSON
()
test/helpers/clone.test.js:211
↓ 1 callers
Function
toObject
* Returns a native js Array. * * @param {Object} options * @return {Array} * @api public * @method toObject * @memberOf MongooseArra
lib/types/array/methods/index.js:886
↓ 1 callers
Function
toggleAll
(e)
docs/js/mobile-navbar-toggle.js:28
← previous
next →
401–500 of 1,018, ranked by callers