MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,533 in github.com/Automattic/mongoose

↓ 1 callersFunction$applyDefaultsToNested
(val, path, doc)
lib/document.js:502
↓ 1 callersMethod$where
Adds a `$where` clause to this query
types/models.d.ts:784
↓ 1 callersFunctionInternalItemSchemaGen
()
test/model.populate.test.js:9224
↓ 1 callersFunctionMongooseArray
(values, path, doc, schematype)
lib/types/array/index.js:32
↓ 1 callersFunctionTestDoc
* Setup.
test/types.documentarray.test.js:23
↓ 1 callersFunctionUserModel
()
test/types/populate.test.ts:584
↓ 1 callersFunction_addArrayPathsToValidate
(doc, paths, doValidateOptions)
lib/document.js:3292
↓ 1 callersFunction_addDiscriminatorToObject
(schema, obj)
lib/helpers/model/castBulkWrite.js:310
↓ 1 callersMethod_addSegment
* @param {PathTrieNode} node * @param {string} segment
lib/helpers/pathTrie.js:60
↓ 1 callersFunction_addSortKeys
(sort, arg)
lib/query.js:3215
↓ 1 callersFunction_appendError
(error, query, key, aggregatedError)
lib/helpers/query/castUpdate.js:517
↓ 1 callersFunction_applyCustomWhere
(doc, where)
lib/model.js:330
↓ 1 callersFunction_applyTimestampToUpdateOperator
(op)
lib/helpers/update/applyTimestampsToChildren.js:46
↓ 1 callersFunction_assign
(model, vals, mod, assignmentOpts)
lib/model.js:4959
↓ 1 callersMethod_byName
(this: QueryWithHelpers<any, ITest, QueryHelpers>, name: string)
test/types/queries.test.ts:25
↓ 1 callersFunction_cannotMergePush
(pending, atomic)
lib/types/array/methods/index.js:1167
↓ 1 callersFunction_cast
(val, numbertype, context)
lib/cast.js:397
↓ 1 callersFunction_castArrayFilters
(query)
lib/query.js:2436
↓ 1 callersFunction_castArrayFilters
(arrayFilters, schema, strictQuery, updatedPathsByFilter, query)
lib/helpers/update/castArrayFilters.js:61
↓ 1 callersFunction_castFilter
(model, filter, options)
lib/helpers/model/castBulkWrite.js:297
↓ 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:1068
↓ 1 callersFunction_checkImmutableSubpaths
(subdoc, schematype, priorVal)
lib/document.js:3692
↓ 1 callersFunction_checkSingleFilterKey
(arrayFilter, updateKeys)
lib/helpers/update/removeUnusedArrayFilters.js:23
↓ 1 callersFunction_clearAtomicsOnPaths
(doc, paths)
lib/document.js:3856
↓ 1 callersFunction_clearDerivedPathCaches
(schema, seen)
lib/schema.js:3331
↓ 1 callersFunction_cloneUpdateIfShared
(query)
lib/query.js:4961
↓ 1 callersFunction_completeManyLean
(schema, docs, path, opts)
lib/query.js:4144
↓ 1 callersFunction_completeOneLean
(schema, doc, path, res, opts, callback)
lib/query.js:4108
↓ 1 callersFunction_completeValidate
(doc)
lib/document.js:2887
↓ 1 callersFunction_createCollection
()
lib/model.js:1161
↓ 1 callersFunction_createSaveOptions
(doc, options)
lib/model.js:342
↓ 1 callersFunction_createSearchIndexes
()
lib/model.js:1148
↓ 1 callersFunction_deletePath
(schema, name)
lib/schema.js:2922
↓ 1 callersFunction_deleteSubpaths
(schema, name)
lib/schema.js:2908
↓ 1 callersFunction_dropDBs
()
test/common.js:172
↓ 1 callersFunction_dropIndexes
(toDrop, model, options)
lib/model.js:1592
↓ 1 callersFunction_ensureIndexes
()
lib/model.js:1136
↓ 1 callersFunction_executePostHooks
(query, res, error, op)
lib/query.js:4921
↓ 1 callersFunction_executePreHooks
(query, op)
lib/query.js:4948
↓ 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:827
↓ 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:894
↓ 1 callersFunction_getAllPathsToValidate
(doc)
lib/document.js:2928
↓ 1 callersFunction_getAtomics
(doc, previous)
lib/plugins/trackTransaction.js:51
↓ 1 callersFunction_getContexts
(hook)
lib/model.js:5429
↓ 1 callersFunction_getModelNames
(doc, schemaType, modelNameFromQuery, model)
lib/helpers/populate/getModelsMapForPopulate.js:228
↓ 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:367
↓ 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:468
↓ 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:4092
↓ 1 callersFunction_getPath
(schema, path, cleanPath)
lib/schema.js:1521
↓ 1 callersFunction_getPathsToValidate
(doc, pathsToValidate, pathsToSkip)
lib/document.js:3010
↓ 1 callersFunction_getPopulatedPaths
(list, arr, prefix)
lib/query.js:5269
↓ 1 callersFunction_getProjectionIndex
(doc)
lib/document.js:2550
↓ 1 callersFunction_getRawCursor
(query, queryCursor)
lib/cursor/queryCursor.js:132
↓ 1 callersFunction_getRawCursor
(model, aggregationCursor, agg)
lib/cursor/aggregationCursor.js:103
↓ 1 callersFunction_handleConnectionErrors
(err)
lib/connection.js:1181
↓ 1 callersFunction_handlePathsToSkip
(paths, pathsToSkip)
lib/document.js:3425
↓ 1 callersFunction_handlePathsToValidate
(paths, pathsToValidate)
lib/document.js:3380
↓ 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:136
↓ 1 callersFunction_handleReconnect
()
lib/drivers/node-mongodb-native/connection.js:445
↓ 1 callersFunction_handleSortValue
(val, key)
lib/query.js:3265
↓ 1 callersFunction_hasNearCondition
(filter)
lib/query.js:3194
↓ 1 callersFunction_hasNothingToValidate
(type)
lib/document.js:3274
↓ 1 callersFunction_hasSelectedPaths
(schema, stack)
lib/schema.js:3353
↓ 1 callersFunction_init
(err, casted)
lib/query.js:3452
↓ 1 callersFunction_init
(model, c, agg)
lib/cursor/aggregationCursor.js:76
↓ 1 callersFunction_inner
()
test/util.js:13
↓ 1 callersFunction_isAllSubdocs
(docs, ref)
lib/types/array/methods/index.js:1067
↓ 1 callersFunction_isEmpty
(v)
lib/document.js:2161
↓ 1 callersFunction_isManuallyPopulatedArray
(val, ref)
lib/document.js:1507
↓ 1 callersFunction_markValidSubpaths
(doc, path)
lib/document.js:3672
↓ 1 callersFunction_minimizePath
(obj, parts, i)
lib/types/array/methods/index.js:1098
↓ 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:485
↓ 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:495
↓ 1 callersFunction_orFailError
* Get the error to throw for `orFail()` * @param {Error|undefined} err * @param {Query} query * @api private
lib/query.js:4794
↓ 1 callersFunction_pathToPositionalSyntax
(path)
lib/schema.js:1547
↓ 1 callersFunction_populateObj
(obj)
lib/utils.js:625
↓ 1 callersFunction_populatePath
(model, docs, populateOptions)
lib/model.js:4593
↓ 1 callersFunction_precomputeOptimisticConcurrency
(schema)
lib/schema.js:3389
↓ 1 callersFunction_previewUpdate
(update)
lib/query.js:4219
↓ 1 callersFunction_propagateOptionsToImplicitlyCreatedSchemas
(baseSchema, options)
lib/schema.js:2582
↓ 1 callersFunction_resetSessionDocuments
(session)
lib/connection.js:781
↓ 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:525
↓ 1 callersFunction_toObjectRecursive
(value, options, isRoot, seen)
lib/helpers/document/toObjectRecursive.js:16
↓ 1 callersFunction_update
* Common code for `updateOne()`, `updateMany()`, `replaceOne()`, and `update()` * because they need to do the same thing * @api private
lib/model.js:4262
↓ 1 callersFunction_update
* Internal helper for update, updateMany, updateOne, replaceOne * @param {Query} query * @param {string} op * @param {object} filter * @param {Doc
lib/query.js:4640
↓ 1 callersFunction_validate
(ok, validatorProperties)
lib/schemaType.js:1559
↓ 1 callersFunction_validateDefaultSort
(defaultSort)
lib/schema.js:3294
↓ 1 callersFunction_virtualPopulate
(model, docs, options, _virtualRes)
lib/helpers/populate/getModelsMapForPopulate.js:489
↓ 1 callersFunction_waitForCursor
(ctx, cb)
lib/cursor/queryCursor.js:664
↓ 1 callersFunction_waitForCursor
(ctx, cb)
lib/cursor/aggregationCursor.js:478
↓ 1 callersFunction_walkUpdatePath
(schema, op, path, update, ctx)
lib/helpers/update/moveImmutableProperties.js:32
↓ 1 callersFunction_wrapUserTransaction
(fn, session, mongoose)
lib/connection.js:758
↓ 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:191
↓ 1 callersFunctionallNestedPaths
(schema)
lib/helpers/model/discriminator.js:50
↓ 1 callersFunctionanalyzePath
(path, type)
lib/queryHelpers.js:354
← previousnext →201–300 of 1,533, ranked by callers