Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,512 in github.com/Automattic/mongoose
⨍
Functions
1,512
◇
Types & classes
795
↓ 1 callers
Method
$where
Adds a `$where` clause to this query
types/models.d.ts:776
↓ 1 callers
Function
InternalItemSchemaGen
()
test/model.populate.test.js:9193
↓ 1 callers
Function
MongooseArray
(values, path, doc, schematype)
lib/types/array/index.js:32
↓ 1 callers
Function
TestDoc
* Setup.
test/types.documentarray.test.js:23
↓ 1 callers
Function
UserModel
()
test/types/populate.test.ts:584
↓ 1 callers
Function
_addArrayPathsToValidate
(doc, paths, doValidateOptions)
lib/document.js:3276
↓ 1 callers
Function
_addDiscriminatorToObject
(schema, obj)
lib/helpers/model/castBulkWrite.js:310
↓ 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:515
↓ 1 callers
Function
_applyCustomWhere
(doc, where)
lib/model.js:328
↓ 1 callers
Function
_applyTimestampToUpdateOperator
(op)
lib/helpers/update/applyTimestampsToChildren.js:46
↓ 1 callers
Function
_assign
(model, vals, mod, assignmentOpts)
lib/model.js:4943
↓ 1 callers
Method
_byName
(this: QueryWithHelpers<any, ITest, QueryHelpers>, name: string)
test/types/queries.test.ts:25
↓ 1 callers
Function
_cannotMergePush
(pending, atomic)
lib/types/array/methods/index.js:1089
↓ 1 callers
Function
_cast
(val, numbertype, context)
lib/cast.js:395
↓ 1 callers
Function
_castArrayFilters
(query)
lib/query.js:2409
↓ 1 callers
Function
_castArrayFilters
(arrayFilters, schema, strictQuery, updatedPathsByFilter, query)
lib/helpers/update/castArrayFilters.js:59
↓ 1 callers
Function
_castFilter
(model, filter, options)
lib/helpers/model/castBulkWrite.js:297
↓ 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:1064
↓ 1 callers
Function
_checkImmutableSubpaths
(subdoc, schematype, priorVal)
lib/document.js:3676
↓ 1 callers
Function
_checkSingleFilterKey
(arrayFilter, updateKeys)
lib/helpers/update/removeUnusedArrayFilters.js:23
↓ 1 callers
Function
_clearAtomicsOnPaths
(doc, paths)
lib/document.js:3840
↓ 1 callers
Function
_clearDerivedPathCaches
(schema, seen)
lib/schema.js:3313
↓ 1 callers
Function
_cloneUpdateIfShared
(query)
lib/query.js:4894
↓ 1 callers
Function
_completeManyLean
(schema, docs, path, opts)
lib/query.js:4077
↓ 1 callers
Function
_completeOneLean
(schema, doc, path, res, opts, callback)
lib/query.js:4041
↓ 1 callers
Function
_completeValidate
(doc)
lib/document.js:2871
↓ 1 callers
Function
_createCollection
()
lib/model.js:1157
↓ 1 callers
Function
_createSaveOptions
(doc, options)
lib/model.js:340
↓ 1 callers
Function
_createSearchIndexes
()
lib/model.js:1144
↓ 1 callers
Function
_deletePath
(schema, name)
lib/schema.js:2943
↓ 1 callers
Function
_deleteSubpaths
(schema, name)
lib/schema.js:2929
↓ 1 callers
Function
_dropDBs
()
test/common.js:172
↓ 1 callers
Function
_dropIndexes
(toDrop, model, options)
lib/model.js:1588
↓ 1 callers
Function
_ensureIndexes
()
lib/model.js:1132
↓ 1 callers
Function
_executePostHooks
(query, res, error, op)
lib/query.js:4854
↓ 1 callers
Function
_executePreHooks
(query, op)
lib/query.js:4881
↓ 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:825
↓ 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:894
↓ 1 callers
Function
_getAllPathsToValidate
(doc)
lib/document.js:2912
↓ 1 callers
Function
_getAtomics
(doc, previous)
lib/plugins/trackTransaction.js:51
↓ 1 callers
Function
_getContexts
(hook)
lib/model.js:5413
↓ 1 callers
Function
_getModelNames
(doc, schemaType, modelNameFromQuery, model)
lib/helpers/populate/getModelsMapForPopulate.js:226
↓ 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:365
↓ 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:466
↓ 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:4025
↓ 1 callers
Function
_getPath
(schema, path, cleanPath)
lib/schema.js:1516
↓ 1 callers
Function
_getPathsToValidate
(doc, pathsToValidate, pathsToSkip)
lib/document.js:2994
↓ 1 callers
Function
_getPopulatedPaths
(list, arr, prefix)
lib/query.js:5202
↓ 1 callers
Function
_getProjectionIndex
(doc)
lib/document.js:2534
↓ 1 callers
Function
_getRawCursor
(query, queryCursor)
lib/cursor/queryCursor.js:132
↓ 1 callers
Function
_getRawCursor
(model, aggregationCursor, agg)
lib/cursor/aggregationCursor.js:103
↓ 1 callers
Function
_handleConnectionErrors
(err)
lib/connection.js:1180
↓ 1 callers
Function
_handlePathsToSkip
(paths, pathsToSkip)
lib/document.js:3409
↓ 1 callers
Function
_handlePathsToValidate
(paths, pathsToValidate)
lib/document.js:3364
↓ 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:136
↓ 1 callers
Function
_handleReconnect
()
lib/drivers/node-mongodb-native/connection.js:445
↓ 1 callers
Function
_handleSortValue
(val, key)
lib/query.js:3199
↓ 1 callers
Function
_hasNothingToValidate
(type)
lib/document.js:3258
↓ 1 callers
Function
_hasSelectedPaths
(schema, stack)
lib/schema.js:3335
↓ 1 callers
Function
_init
(err, casted)
lib/query.js:3385
↓ 1 callers
Function
_init
(model, c, agg)
lib/cursor/aggregationCursor.js:76
↓ 1 callers
Function
_inner
()
test/util.js:13
↓ 1 callers
Function
_isAllSubdocs
(docs, ref)
lib/types/array/methods/index.js:989
↓ 1 callers
Function
_isEmpty
(v)
lib/document.js:2145
↓ 1 callers
Function
_isManuallyPopulatedArray
(val, ref)
lib/document.js:1491
↓ 1 callers
Function
_markValidSubpaths
(doc, path)
lib/document.js:3656
↓ 1 callers
Function
_minimizePath
(obj, parts, i)
lib/types/array/methods/index.js:1020
↓ 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:485
↓ 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:495
↓ 1 callers
Function
_orFailError
* Get the error to throw for `orFail()` * @param {Error|undefined} err * @param {Query} query * @api private
lib/query.js:4727
↓ 1 callers
Function
_pathToPositionalSyntax
(path)
lib/schema.js:1542
↓ 1 callers
Function
_populateObj
(obj)
lib/utils.js:624
↓ 1 callers
Function
_populatePath
(model, docs, populateOptions)
lib/model.js:4579
↓ 1 callers
Function
_precomputeOptimisticConcurrency
(schema)
lib/schema.js:3371
↓ 1 callers
Function
_previewUpdate
(update)
lib/query.js:4152
↓ 1 callers
Function
_propagateOptionsToImplicitlyCreatedSchemas
(baseSchema, options)
lib/schema.js:2603
↓ 1 callers
Function
_resetSessionDocuments
(session)
lib/connection.js:780
↓ 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:525
↓ 1 callers
Function
_toObjectRecursive
(value, options, isRoot, seen)
lib/helpers/document/toObjectRecursive.js:16
↓ 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:4250
↓ 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:4573
↓ 1 callers
Function
_validate
(ok, validatorProperties)
lib/schemaType.js:1557
↓ 1 callers
Function
_virtualPopulate
(model, docs, options, _virtualRes)
lib/helpers/populate/getModelsMapForPopulate.js:487
↓ 1 callers
Function
_waitForCursor
(ctx, cb)
lib/cursor/queryCursor.js:664
↓ 1 callers
Function
_waitForCursor
(ctx, cb)
lib/cursor/aggregationCursor.js:478
↓ 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:757
↓ 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:354
↓ 1 callers
Function
analyzeSchema
(schema, prefix)
lib/queryHelpers.js:306
↓ 1 callers
Function
appendAssistantMessage
()
docs/js/ask-ai.js:184
↓ 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:81
↓ 1 callers
Function
appendUserMessage
(text)
docs/js/ask-ai.js:172
← previous
next →
201–300 of 1,512, ranked by callers