MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

↓ 1 callersFunction_executePostExecHooks
(query)
lib/query.js:4471
↓ 1 callersFunction_executePostHooks
(query, res, error, op)
lib/query.js:4487
↓ 1 callersFunction_executePreExecHooks
(query)
lib/query.js:4512
↓ 1 callersFunction_executePreHooks
(query, op)
lib/query.js:4527
↓ 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:67
↓ 1 callersFunction_findRefPathForDiscriminators
(doc, modelSchema, data, options, normalizedRefPath, ret)
lib/helpers/populate/getModelsMapForPopulate.js:690
↓ 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:89
↓ 1 callersFunction_geojsonPoint
(coordinates)
test/model.query.casting.test.js:796
↓ 1 callersFunction_getAtomics
(doc, previous)
lib/plugins/trackTransaction.js:41
↓ 1 callersFunction_getContexts
(hook)
lib/helpers/query/applyQueryMiddleware.js:45
↓ 1 callersFunction_getModelNames
(doc, schema, modelNameFromQuery, model)
lib/helpers/populate/getModelsMapForPopulate.js:208
↓ 1 callersFunction_getPath
(schema, path, cleanPath)
lib/schema.js:1204
↓ 1 callersFunction_getPathsToValidate
(doc, pathsToValidate, pathsToSkip)
lib/document.js:2687
↓ 1 callersFunction_getPopulatedPaths
(list, arr, prefix)
lib/query.js:4884
↓ 1 callersFunction_getRawCursor
(query, queryCursor)
lib/cursor/QueryCursor.js:101
↓ 1 callersFunction_handleConnectionErrors
(err)
lib/connection.js:813
↓ 1 callersFunction_handlePathsToSkip
(paths, pathsToSkip)
lib/document.js:3077
↓ 1 callersFunction_handlePathsToValidate
(paths, pathsToValidate)
lib/document.js:3044
↓ 1 callersFunction_handleReconnect
()
lib/drivers/node-mongodb-native/connection.js:355
↓ 1 callersFunction_init
(err, casted)
lib/query.js:3144
↓ 1 callersFunction_init
(index)
lib/document.js:743
↓ 1 callersFunction_init
(model, c, agg)
lib/cursor/AggregationCursor.js:57
↓ 1 callersFunction_inner
()
test/util.js:13
↓ 1 callersFunction_isAllSubdocs
(docs, ref)
lib/types/array/methods/index.js:940
↓ 1 callersFunction_isEmpty
(v)
lib/document.js:2147
↓ 1 callersFunction_isManuallyPopulatedArray
(val, ref)
lib/document.js:1516
↓ 1 callersFunction_markValidSubpaths
(doc, path)
lib/document.js:3277
↓ 1 callersFunction_minimizePath
(obj, parts, i)
lib/types/array/methods/index.js:971
↓ 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:398
↓ 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:349
↓ 1 callersFunction_omitUndefined
(val)
lib/helpers/query/cast$expr.js:137
↓ 1 callersFunction_orFailError
* Get the error to throw for `orFail()` * @param {Error|undefined} err * @param {Query} query * @api private
lib/query.js:4359
↓ 1 callersFunction_pathToPositionalSyntax
(path)
lib/schema.js:1222
↓ 1 callersFunction_populate
* Populate helper * * @param {Model} model the model to use * @param {Document|Array} docs Either a single document or array of documents to popula
lib/model.js:4344
↓ 1 callersFunction_populateObj
(obj)
lib/utils.js:569
↓ 1 callersFunction_propagateOptionsToImplicitlyCreatedSchemas
(baseSchema, options)
lib/schema.js:2146
↓ 1 callersFunction_pushNestedArrayPaths
(val, paths, path)
lib/document.js:2816
↓ 1 callersFunction_resetSessionDocuments
(session)
lib/connection.js:559
↓ 1 callersFunction_setClient
(conn, client, options, dbName)
lib/drivers/node-mongodb-native/connection.js:336
↓ 1 callersFunction_update
* Common code for `updateOne()`, `updateMany()`, `replaceOne()`, and `update()` * because they need to do the same thing * @api private
lib/model.js:4036
↓ 1 callersFunction_update
* Internal helper for update, updateMany, updateOne, replaceOne * @param {Query} query * @param {String} op * @param {Object} filter * @param {Doc
lib/query.js:4210
↓ 1 callersFunction_validate
(ok, validatorProperties)
lib/schematype.js:1375
↓ 1 callersFunction_virtualPopulate
(model, docs, options, _virtualRes)
lib/helpers/populate/getModelsMapForPopulate.js:358
↓ 1 callersFunction_waitForCursor
(ctx, cb)
lib/cursor/QueryCursor.js:567
↓ 1 callersFunction_waitForCursor
(ctx, cb)
lib/cursor/AggregationCursor.js:332
↓ 1 callersFunction_walkUpdatePath
(schema, op, path, update, ctx)
lib/helpers/update/moveImmutableProperties.js:32
↓ 1 callersFunction_wrapThunkCallback
(query, cb)
lib/query.js:4546
↓ 1 callersFunction_wrapUserTransaction
(fn, session, mongoose)
lib/connection.js:539
↓ 1 callersFunctionaddHistory
Helper to consistently add history and reload results
docs/js/search.js:32
↓ 1 callersFunctionaliasFields
* Create virtual properties with alias field * @api private
lib/schema.js:180
↓ 1 callersFunctionanalyzePath
(path, type)
lib/queryhelpers.js:312
↓ 1 callersFunctionanalyzeSchema
(schema, prefix)
lib/queryhelpers.js:267
↓ 1 callersFunctionapply
(method, schema)
lib/helpers/model/applyMethods.js:17
↓ 1 callersFunctionapplyChangeTracking
(doc, fullPath)
lib/helpers/document/applyDefaults.js:123
↓ 1 callersFunctionapplyEmbeddedDiscriminators
(schema, seen = new WeakSet())
lib/helpers/discriminator/applyEmbeddedDiscriminators.js:5
↓ 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 * @param {Object} [options] * @return {Object} `json`
lib/document.js:4126
↓ 1 callersFunctionapplyInclusiveProjection
(doc, projection, hasIncludedChildren, projectionLimb, prefix)
lib/helpers/projection/applyProjection.js:56
↓ 1 callersFunctionapplyQueryMethods
* Register custom query methods for this model * * @param {Model} model * @param {Schema} schema * @api private
lib/model.js:4846
↓ 1 callersFunctionapplyQueryMiddleware
* Apply query middleware * * @param {Query} Query constructor * @param {Model} model * @api private
lib/helpers/query/applyQueryMiddleware.js:27
↓ 1 callersFunctionapplyQueue
(doc)
lib/document.js:3685
↓ 1 callersFunctionapplySchemaTypeTransforms
* Applies schema type transforms to `json`. * * @param {Document} self * @param {Object} json * @return {Object} `json` * @api private
lib/document.js:4196
↓ 1 callersFunctionapplyTimestampsToDocumentArray
(arr, schematype, now)
lib/helpers/update/applyTimestampsToChildren.js:82
↓ 1 callersFunctionapplyTimestampsToSingleNested
(subdoc, schematype, now)
lib/helpers/update/applyTimestampsToChildren.js:108
↓ 1 callersFunctionapplyTimestampsToUpdateKey
(schema, key, update, now)
lib/helpers/update/applyTimestampsToChildren.js:127
↓ 1 callersFunctionapplyVirtuals
(self, json, options, toObjectOptions)
lib/document.js:4046
↓ 1 callersFunctionassertDocumentStructure
(payment)
test/model.updateOne.test.js:3144
↓ 1 callersFunctionassertErrorProperties
(user)
test/model.test.js:7013
↓ 1 callersFunctionassignRawDocsToIdStructure
* Assign `vals` returned by mongo query to the `rawIds` * structure returned from utils.getVals() honoring * query sort order if specified by user.
lib/helpers/populate/assignRawDocsToIdStructure.js:34
↓ 1 callersMethodassimilateError
* MongooseServerSelectionError constructor * * @api private
lib/error/serverSelection.js:32
↓ 1 callersFunctionasyncQueue
()
lib/helpers/cursor/eachAsync.js:192
↓ 1 callersFunctionautoTypedModelConnection
()
test/types/connection.test.ts:73
↓ 1 callersFunctionbinary2hex
* Helper function to convert the buffer input to a string * @param {Buffer} buf The buffer to convert to a hex-string * @returns {String} The buffer
lib/schema/uuid.js:36
↓ 1 callersMethodbyName
(this: ProjectModelQuery, name: string)
test/types/queryhelpers.test.ts:13
↓ 1 callersFunctioncalledWithString
()
test/model.middleware.preposttypes.test.js:153
↓ 1 callersMethodcast
(val)
test/docs/schematypes.test.js:40
↓ 1 callersFunctioncastArithmetic
(val)
lib/helpers/query/cast$expr.js:186
↓ 1 callersFunctioncastComparison
(val, schema, strictQuery)
lib/helpers/query/cast$expr.js:211
↓ 1 callersFunctioncastIn
(val, schema, strictQuery)
lib/helpers/query/cast$expr.js:157
↓ 1 callersFunctioncastNumberOperator
(val)
lib/helpers/query/cast$expr.js:145
↓ 1 callersFunctioncastPipelineOperator
(op, val)
lib/helpers/query/castUpdate.js:139
↓ 1 callersFunctioncastUpdateVal
* Casts `val` according to `schema` and atomic `op`. * * @param {SchemaType} schema * @param {Object} val * @param {String} op the atomic operator
lib/helpers/query/castUpdate.js:486
↓ 1 callersFunctionchangeStreamThunk
lib/model.js:2977
↓ 1 callersFunctioncheckCalls
()
test/model.middleware.preposttypes.test.js:150
↓ 1 callersFunctioncheckDiscriminatorModelsFindDocumentsOfItsType
(fields)
test/model.discriminator.querying.test.js:244
↓ 1 callersFunctioncheckDiscriminatorModelsFindOneDocumentOfItsType
(fields)
test/model.discriminator.querying.test.js:465
↓ 1 callersFunctioncheckDivergentArray
* Determine if array was populated with some form of filter and is now * being updated in a manner which could overwrite data unintentionally. * *
lib/model.js:846
↓ 1 callersFunctioncheckFolder
(folder)
test/types/check-types-filename.js:6
↓ 1 callersFunctioncheckHydratesCorrectModels
(fields)
test/model.discriminator.querying.test.js:135
↓ 1 callersFunctioncleanup
()
examples/globalschemas/gs_example.js:44
↓ 1 callersFunctioncleanup
()
examples/lean/lean.js:82
↓ 1 callersFunctioncleanup
()
examples/querybuilder/querybuilder.js:77
↓ 1 callersFunctioncleanup
()
examples/aggregate/aggregate.js:101
↓ 1 callersFunctioncleanup
()
examples/geospatial/geoJSONexample.js:54
↓ 1 callersFunctioncleanup
()
examples/geospatial/geospatial.js:98
↓ 1 callersFunctioncleanup
()
examples/statics/statics.js:30
↓ 1 callersFunctionclearCache
(hashKey)
examples/redis-todo/services/cache.js:41
↓ 1 callersFunctioncloneAndTestDeepEquals
()
test/schematype.test.js:119
↓ 1 callersFunctioncloneArray
(arr, options)
lib/helpers/clone.js:162
↓ 1 callersFunctioncloneObject
(obj, options, isArrayChild)
lib/helpers/clone.js:122
← previousnext →201–300 of 1,018, ranked by callers