MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,456 in github.com/Automattic/mongoose

↓ 1 callersFunctionUserModel
()
test/types/populate.test.ts:584
↓ 1 callersFunction_addArrayPathsToValidate
(doc, paths)
lib/document.js:3243
↓ 1 callersFunction_addDiscriminatorToObject
(schema, obj)
lib/helpers/model/castBulkWrite.js:286
↓ 1 callersMethod_addSegment
* @param {PathTrieNode} node * @param {string} segment
lib/helpers/pathTrie.js:60
↓ 1 callersFunction_appendError
(error, query, key, aggregatedError)
lib/helpers/query/castUpdate.js:501
↓ 1 callersFunction_applyCustomWhere
(doc, where)
lib/model.js:326
↓ 1 callersFunction_applyTimestampToUpdateOperator
(op)
lib/helpers/update/applyTimestampsToChildren.js:46
↓ 1 callersFunction_assign
(model, vals, mod, assignmentOpts)
lib/model.js:4866
↓ 1 callersMethod_byName
(this: QueryWithHelpers<any, ITest, QueryHelpers>, name: string)
test/types/queries.test.ts:25
↓ 1 callersFunction_cast
(val, numbertype, context)
lib/cast.js:398
↓ 1 callersFunction_castArrayFilters
(query)
lib/query.js:2422
↓ 1 callersFunction_castArrayFilters
(arrayFilters, schema, strictQuery, updatedPathsByFilter, query)
lib/helpers/update/castArrayFilters.js:35
↓ 1 callersFunction_castNumber
(path, num)
lib/schema/operators/bitwise.js:30
↓ 1 callersFunction_checkContext
* Make sure `this` is a model * @api private
lib/model.js:1062
↓ 1 callersFunction_checkImmutableSubpaths
(subdoc, schematype, priorVal)
lib/document.js:3607
↓ 1 callersFunction_checkSingleFilterKey
(arrayFilter, updateKeys)
lib/helpers/update/removeUnusedArrayFilters.js:23
↓ 1 callersFunction_clearAtomicsOnPaths
(doc, paths)
lib/document.js:3769
↓ 1 callersFunction_cloneUpdateIfShared
(query)
lib/query.js:4874
↓ 1 callersFunction_completeManyLean
(schema, docs, path, opts)
lib/query.js:4069
↓ 1 callersFunction_completeOneLean
(schema, doc, path, res, opts, callback)
lib/query.js:4033
↓ 1 callersFunction_completeValidate
(doc)
lib/document.js:2949
↓ 1 callersFunction_createCollection
()
lib/model.js:1155
↓ 1 callersFunction_createSaveOptions
(doc, options)
lib/model.js:338
↓ 1 callersFunction_createSearchIndexes
()
lib/model.js:1142
↓ 1 callersFunction_deletePath
(schema, name)
lib/schema.js:2785
↓ 1 callersFunction_dropDBs
()
test/common.js:172
↓ 1 callersFunction_dropIndexes
(toDrop, model, options)
lib/model.js:1586
↓ 1 callersFunction_ensureIndexes
()
lib/model.js:1130
↓ 1 callersFunction_executePostHooks
(query, res, error, op)
lib/query.js:4834
↓ 1 callersFunction_executePreHooks
(query, op)
lib/query.js:4861
↓ 1 callersFunction_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 callersFunction_findRefPathForDiscriminators
(doc, modelSchema, data, options, normalizedRefPath, ret)
lib/helpers/populate/getModelsMapForPopulate.js:824
↓ 1 callersFunction_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 callersFunction_geojsonPoint
(coordinates)
test/model.query.casting.test.js:859
↓ 1 callersFunction_getAtomics
(doc, previous)
lib/plugins/trackTransaction.js:51
↓ 1 callersFunction_getContexts
(hook)
lib/model.js:5333
↓ 1 callersFunction_getModelNames
(doc, schemaType, modelNameFromQuery, model)
lib/helpers/populate/getModelsMapForPopulate.js:225
↓ 1 callersFunction_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 callersFunction_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 callersFunction_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 callersFunction_getPath
(schema, path, cleanPath)
lib/schema.js:1499
↓ 1 callersFunction_getPathsToValidate
(doc, pathsToValidate, pathsToSkip, isNestedValidate)
lib/document.js:2991
↓ 1 callersFunction_getPopulatedPaths
(list, arr, prefix)
lib/query.js:5182
↓ 1 callersFunction_getRawCursor
(query, queryCursor)
lib/cursor/queryCursor.js:110
↓ 1 callersFunction_getRawCursor
(model, aggregationCursor, agg)
lib/cursor/aggregationCursor.js:91
↓ 1 callersFunction_handleConnectionErrors
(err)
lib/connection.js:1172
↓ 1 callersFunction_handlePathsToSkip
(paths, pathsToSkip)
lib/document.js:3342
↓ 1 callersFunction_handlePathsToValidate
(paths, pathsToValidate)
lib/document.js:3309
↓ 1 callersFunction_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 callersFunction_handleReconnect
()
lib/drivers/node-mongodb-native/connection.js:445
↓ 1 callersFunction_handleSortValue
(val, key)
lib/query.js:3183
↓ 1 callersFunction_init
(err, casted)
lib/query.js:3369
↓ 1 callersFunction_init
(model, c, agg)
lib/cursor/aggregationCursor.js:65
↓ 1 callersFunction_inner
()
test/util.js:13
↓ 1 callersFunction_isAllSubdocs
(docs, ref)
lib/types/array/methods/index.js:980
↓ 1 callersFunction_isEmpty
(v)
lib/document.js:2245
↓ 1 callersFunction_isManuallyPopulatedArray
(val, ref)
lib/document.js:1600
↓ 1 callersFunction_markValidSubpaths
(doc, path)
lib/document.js:3587
↓ 1 callersFunction_minimizePath
(obj, parts, i)
lib/types/array/methods/index.js:1011
↓ 1 callersFunction_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 callersFunction_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 callersFunction_orFailError
* Get the error to throw for `orFail()` * @param {Error|undefined} err * @param {Query} query * @api private
lib/query.js:4707
↓ 1 callersFunction_pathToPositionalSyntax
(path)
lib/schema.js:1525
↓ 1 callersFunction_populateObj
(obj)
lib/utils.js:624
↓ 1 callersFunction_populatePath
(model, docs, populateOptions)
lib/model.js:4515
↓ 1 callersFunction_precomputeOptimisticConcurrency
(schema)
lib/schema.js:3151
↓ 1 callersFunction_previewUpdate
(update)
lib/query.js:4144
↓ 1 callersFunction_propagateOptionsToImplicitlyCreatedSchemas
(baseSchema, options)
lib/schema.js:2487
↓ 1 callersFunction_resetSessionDocuments
(session)
lib/connection.js:772
↓ 1 callersFunction_setClient
(conn, client, options, dbName)
lib/drivers/node-mongodb-native/connection.js:436
↓ 1 callersFunction_shouldReindexAfterPush
(args)
lib/types/documentArray/methods/index.js:500
↓ 1 callersFunction_update
* Common code for `updateOne()`, `updateMany()`, `replaceOne()`, and `update()` * because they need to do the same thing * @api private
lib/model.js:4180
↓ 1 callersFunction_update
* Internal helper for update, updateMany, updateOne, replaceOne * @param {Query} query * @param {string} op * @param {object} filter * @param {Doc
lib/query.js:4546
↓ 1 callersFunction_validate
(ok, validatorProperties)
lib/schemaType.js:1547
↓ 1 callersFunction_virtualPopulate
(model, docs, options, _virtualRes)
lib/helpers/populate/getModelsMapForPopulate.js:486
↓ 1 callersFunction_waitForCursor
(ctx, cb)
lib/cursor/queryCursor.js:629
↓ 1 callersFunction_waitForCursor
(ctx, cb)
lib/cursor/aggregationCursor.js:442
↓ 1 callersFunction_walkUpdatePath
(schema, op, path, update, ctx)
lib/helpers/update/moveImmutableProperties.js:32
↓ 1 callersFunction_wrapUserTransaction
(fn, session, mongoose)
lib/connection.js:752
↓ 1 callersFunctionaddHistory
Helper to consistently add history and reload results
docs/js/search.js:27
↓ 1 callersFunctionaliasFields
* Create virtual properties with alias field * @api private
lib/schema.js:188
↓ 1 callersFunctionallNestedPaths
(schema)
lib/helpers/model/discriminator.js:48
↓ 1 callersFunctionanalyzePath
(path, type)
lib/queryHelpers.js:306
↓ 1 callersFunctionanalyzeSchema
(schema, prefix)
lib/queryHelpers.js:261
↓ 1 callersFunctionappendAssistantMessage
()
docs/js/ask-ai.js:157
↓ 1 callersFunctionappendLLMsSection
* 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 callersFunctionappendUserMessage
(text)
docs/js/ask-ai.js:145
↓ 1 callersFunctionapply
(method, schema)
lib/helpers/model/applyMethods.js:17
↓ 1 callersFunctionapplyChangeTracking
(doc, fullPath, skipParentChangeTracking)
lib/helpers/document/applyDefaults.js:196
↓ 1 callersMethodapplyDefaults
(obj: AnyObject)
types/models.d.ts:261
↓ 1 callersFunctionapplyExclusiveProjection
(doc, projection, hasIncludedChildren, projectionLimb, prefix)
lib/helpers/projection/applyProjection.js:34
↓ 1 callersFunctionapplyGetters
* Applies virtuals properties to `json`. * * @param {Document} self * @param {object} json * @return {object} `json` * @api private
lib/document.js:4458
↓ 1 callersFunctionapplyInclusiveProjection
(doc, projection, hasIncludedChildren, projectionLimb, prefix)
lib/helpers/projection/applyProjection.js:59
↓ 1 callersFunctionapplyQueryMethods
* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
lib/model.js:5158
↓ 1 callersFunctionapplyQueue
(doc)
lib/document.js:4008
↓ 1 callersFunctionapplySchemaTypeTransforms
* Applies schema type transforms to `json`. * * @param {Document} self * @param {object} json * @return {object} `json` * @api private
lib/document.js:4552
↓ 1 callersFunctionapplyTimestamps
* 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 callersMethodapplyTimestamps
* Apply this model's timestamps to a given POJO, including subdocument timestamps
types/models.d.ts:270
↓ 1 callersFunctionapplyTimestampsToDoc
* 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 callersFunctionapplyTimestampsToDocumentArray
(arr, schematype, now)
lib/helpers/update/applyTimestampsToChildren.js:82
← previousnext →201–300 of 1,456, ranked by callers