Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,456 in github.com/Automattic/mongoose
⨍
Functions
1,456
◇
Types & classes
788
↓ 1 callers
Function
UserModel
()
test/types/populate.test.ts:584
↓ 1 callers
Function
_addArrayPathsToValidate
(doc, paths)
lib/document.js:3243
↓ 1 callers
Function
_addDiscriminatorToObject
(schema, obj)
lib/helpers/model/castBulkWrite.js:286
↓ 1 callers
Method
_addSegment
* @param {PathTrieNode} node * @param {string} segment
lib/helpers/pathTrie.js:60
↓ 1 callers
Function
_appendError
(error, query, key, aggregatedError)
lib/helpers/query/castUpdate.js:501
↓ 1 callers
Function
_applyCustomWhere
(doc, where)
lib/model.js:326
↓ 1 callers
Function
_applyTimestampToUpdateOperator
(op)
lib/helpers/update/applyTimestampsToChildren.js:46
↓ 1 callers
Function
_assign
(model, vals, mod, assignmentOpts)
lib/model.js:4866
↓ 1 callers
Method
_byName
(this: QueryWithHelpers<any, ITest, QueryHelpers>, name: string)
test/types/queries.test.ts:25
↓ 1 callers
Function
_cast
(val, numbertype, context)
lib/cast.js:398
↓ 1 callers
Function
_castArrayFilters
(query)
lib/query.js:2422
↓ 1 callers
Function
_castArrayFilters
(arrayFilters, schema, strictQuery, updatedPathsByFilter, query)
lib/helpers/update/castArrayFilters.js:35
↓ 1 callers
Function
_castNumber
(path, num)
lib/schema/operators/bitwise.js:30
↓ 1 callers
Function
_checkContext
* Make sure `this` is a model * @api private
lib/model.js:1062
↓ 1 callers
Function
_checkImmutableSubpaths
(subdoc, schematype, priorVal)
lib/document.js:3607
↓ 1 callers
Function
_checkSingleFilterKey
(arrayFilter, updateKeys)
lib/helpers/update/removeUnusedArrayFilters.js:23
↓ 1 callers
Function
_clearAtomicsOnPaths
(doc, paths)
lib/document.js:3769
↓ 1 callers
Function
_cloneUpdateIfShared
(query)
lib/query.js:4874
↓ 1 callers
Function
_completeManyLean
(schema, docs, path, opts)
lib/query.js:4069
↓ 1 callers
Function
_completeOneLean
(schema, doc, path, res, opts, callback)
lib/query.js:4033
↓ 1 callers
Function
_completeValidate
(doc)
lib/document.js:2949
↓ 1 callers
Function
_createCollection
()
lib/model.js:1155
↓ 1 callers
Function
_createSaveOptions
(doc, options)
lib/model.js:338
↓ 1 callers
Function
_createSearchIndexes
()
lib/model.js:1142
↓ 1 callers
Function
_deletePath
(schema, name)
lib/schema.js:2785
↓ 1 callers
Function
_dropDBs
()
test/common.js:172
↓ 1 callers
Function
_dropIndexes
(toDrop, model, options)
lib/model.js:1586
↓ 1 callers
Function
_ensureIndexes
()
lib/model.js:1130
↓ 1 callers
Function
_executePostHooks
(query, res, error, op)
lib/query.js:4834
↓ 1 callers
Function
_executePreHooks
(query, op)
lib/query.js:4861
↓ 1 callers
Function
_filterInvalidIds
* Optionally filter out invalid ids that don't conform to foreign field's schema * to avoid cast errors (gh-7706) * @param {Array} ids * @param {Sc
lib/helpers/populate/createPopulateQueryFilter.js:75
↓ 1 callers
Function
_findRefPathForDiscriminators
(doc, modelSchema, data, options, normalizedRefPath, ret)
lib/helpers/populate/getModelsMapForPopulate.js:824
↓ 1 callers
Function
_formatMatch
* Format `mod.match` given that it may be an array that we need to $or if * the client has multiple docs with match functions * @param {Array|any} m
lib/helpers/populate/createPopulateQueryFilter.js:97
↓ 1 callers
Function
_geojsonPoint
(coordinates)
test/model.query.casting.test.js:859
↓ 1 callers
Function
_getAtomics
(doc, previous)
lib/plugins/trackTransaction.js:51
↓ 1 callers
Function
_getContexts
(hook)
lib/model.js:5333
↓ 1 callers
Function
_getModelNames
(doc, schemaType, modelNameFromQuery, model)
lib/helpers/populate/getModelsMapForPopulate.js:225
↓ 1 callers
Function
_getModelNamesFromFunctionRefPath
* Resolve model names for function-style `refPath` and return the first * resolved refPath value so discriminator handling can inspect it later. *
lib/helpers/populate/getModelsMapForPopulate.js:364
↓ 1 callers
Function
_getModelNamesFromRefPath
* Resolve model names from a refPath, preferring the indexed populated path * for array subdocuments and falling back to the original populate path i
lib/helpers/populate/getModelsMapForPopulate.js:465
↓ 1 callers
Function
_getOption
* Get options from query opts, falling back to the base mongoose object. * @param {Query} query * @param {object} option * @param {any} def * @api
lib/query.js:4017
↓ 1 callers
Function
_getPath
(schema, path, cleanPath)
lib/schema.js:1499
↓ 1 callers
Function
_getPathsToValidate
(doc, pathsToValidate, pathsToSkip, isNestedValidate)
lib/document.js:2991
↓ 1 callers
Function
_getPopulatedPaths
(list, arr, prefix)
lib/query.js:5182
↓ 1 callers
Function
_getRawCursor
(query, queryCursor)
lib/cursor/queryCursor.js:110
↓ 1 callers
Function
_getRawCursor
(model, aggregationCursor, agg)
lib/cursor/aggregationCursor.js:91
↓ 1 callers
Function
_handleConnectionErrors
(err)
lib/connection.js:1172
↓ 1 callers
Function
_handlePathsToSkip
(paths, pathsToSkip)
lib/document.js:3342
↓ 1 callers
Function
_handlePathsToValidate
(paths, pathsToValidate)
lib/document.js:3309
↓ 1 callers
Function
_handlePreHookError
* Handles error emitted from pre middleware. In particular, checks for `skipWrappedFunction`, which allows skipping * the actual aggregation and overw
lib/cursor/aggregationCursor.js:112
↓ 1 callers
Function
_handleReconnect
()
lib/drivers/node-mongodb-native/connection.js:445
↓ 1 callers
Function
_handleSortValue
(val, key)
lib/query.js:3183
↓ 1 callers
Function
_init
(err, casted)
lib/query.js:3369
↓ 1 callers
Function
_init
(model, c, agg)
lib/cursor/aggregationCursor.js:65
↓ 1 callers
Function
_inner
()
test/util.js:13
↓ 1 callers
Function
_isAllSubdocs
(docs, ref)
lib/types/array/methods/index.js:980
↓ 1 callers
Function
_isEmpty
(v)
lib/document.js:2245
↓ 1 callers
Function
_isManuallyPopulatedArray
(val, ref)
lib/document.js:1600
↓ 1 callers
Function
_markValidSubpaths
(doc, path)
lib/document.js:3587
↓ 1 callers
Function
_minimizePath
(obj, parts, i)
lib/types/array/methods/index.js:1011
↓ 1 callers
Function
_next
* Get the next doc from the underlying cursor and mongooseify it * (populate, etc.) * @param {any} ctx * @param {Function} cb * @api private
lib/cursor/queryCursor.js:450
↓ 1 callers
Function
_next
* Get the next doc from the underlying cursor and mongooseify it * (populate, etc.) * @param {any} ctx * @param {Function} cb * @api private
lib/cursor/aggregationCursor.js:459
↓ 1 callers
Function
_orFailError
* Get the error to throw for `orFail()` * @param {Error|undefined} err * @param {Query} query * @api private
lib/query.js:4707
↓ 1 callers
Function
_pathToPositionalSyntax
(path)
lib/schema.js:1525
↓ 1 callers
Function
_populateObj
(obj)
lib/utils.js:624
↓ 1 callers
Function
_populatePath
(model, docs, populateOptions)
lib/model.js:4515
↓ 1 callers
Function
_precomputeOptimisticConcurrency
(schema)
lib/schema.js:3151
↓ 1 callers
Function
_previewUpdate
(update)
lib/query.js:4144
↓ 1 callers
Function
_propagateOptionsToImplicitlyCreatedSchemas
(baseSchema, options)
lib/schema.js:2487
↓ 1 callers
Function
_resetSessionDocuments
(session)
lib/connection.js:772
↓ 1 callers
Function
_setClient
(conn, client, options, dbName)
lib/drivers/node-mongodb-native/connection.js:436
↓ 1 callers
Function
_shouldReindexAfterPush
(args)
lib/types/documentArray/methods/index.js:500
↓ 1 callers
Function
_update
* Common code for `updateOne()`, `updateMany()`, `replaceOne()`, and `update()` * because they need to do the same thing * @api private
lib/model.js:4180
↓ 1 callers
Function
_update
* Internal helper for update, updateMany, updateOne, replaceOne * @param {Query} query * @param {string} op * @param {object} filter * @param {Doc
lib/query.js:4546
↓ 1 callers
Function
_validate
(ok, validatorProperties)
lib/schemaType.js:1547
↓ 1 callers
Function
_virtualPopulate
(model, docs, options, _virtualRes)
lib/helpers/populate/getModelsMapForPopulate.js:486
↓ 1 callers
Function
_waitForCursor
(ctx, cb)
lib/cursor/queryCursor.js:629
↓ 1 callers
Function
_waitForCursor
(ctx, cb)
lib/cursor/aggregationCursor.js:442
↓ 1 callers
Function
_walkUpdatePath
(schema, op, path, update, ctx)
lib/helpers/update/moveImmutableProperties.js:32
↓ 1 callers
Function
_wrapUserTransaction
(fn, session, mongoose)
lib/connection.js:752
↓ 1 callers
Function
addHistory
Helper to consistently add history and reload results
docs/js/search.js:27
↓ 1 callers
Function
aliasFields
* Create virtual properties with alias field * @api private
lib/schema.js:188
↓ 1 callers
Function
allNestedPaths
(schema)
lib/helpers/model/discriminator.js:48
↓ 1 callers
Function
analyzePath
(path, type)
lib/queryHelpers.js:306
↓ 1 callers
Function
analyzeSchema
(schema, prefix)
lib/queryHelpers.js:261
↓ 1 callers
Function
appendAssistantMessage
()
docs/js/ask-ai.js:157
↓ 1 callers
Function
appendLLMsSection
* Append an llms.txt section if there are entries to list. * @param {string[]} lines The full llms.txt output lines * @param {string} title The sect
scripts/generateLLMsTXT.js:75
↓ 1 callers
Function
appendUserMessage
(text)
docs/js/ask-ai.js:145
↓ 1 callers
Function
apply
(method, schema)
lib/helpers/model/applyMethods.js:17
↓ 1 callers
Function
applyChangeTracking
(doc, fullPath, skipParentChangeTracking)
lib/helpers/document/applyDefaults.js:196
↓ 1 callers
Method
applyDefaults
(obj: AnyObject)
types/models.d.ts:261
↓ 1 callers
Function
applyExclusiveProjection
(doc, projection, hasIncludedChildren, projectionLimb, prefix)
lib/helpers/projection/applyProjection.js:34
↓ 1 callers
Function
applyGetters
* Applies virtuals properties to `json`. * * @param {Document} self * @param {object} json * @return {object} `json` * @api private
lib/document.js:4458
↓ 1 callers
Function
applyInclusiveProjection
(doc, projection, hasIncludedChildren, projectionLimb, prefix)
lib/helpers/projection/applyProjection.js:59
↓ 1 callers
Function
applyQueryMethods
* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
lib/model.js:5158
↓ 1 callers
Function
applyQueue
(doc)
lib/document.js:4008
↓ 1 callers
Function
applySchemaTypeTransforms
* Applies schema type transforms to `json`. * * @param {Document} self * @param {object} json * @return {object} `json` * @api private
lib/document.js:4552
↓ 1 callers
Function
applyTimestamps
* Apply a given schema's timestamps to the given POJO * * @param {Schema} schema * @param {object} obj * @param {object} [options] * @param {bool
lib/helpers/document/applyTimestamps.js:19
↓ 1 callers
Method
applyTimestamps
* Apply this model's timestamps to a given POJO, including subdocument timestamps
types/models.d.ts:270
↓ 1 callers
Function
applyTimestampsToDoc
* Apply timestamps to a given document. Does not apply timestamps to subdocuments: use `applyTimestampsToChildren` instead * * @param {Schema} schem
lib/helpers/document/applyTimestamps.js:64
↓ 1 callers
Function
applyTimestampsToDocumentArray
(arr, schematype, now)
lib/helpers/update/applyTimestampsToChildren.js:82
← previous
next →
201–300 of 1,456, ranked by callers