MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

↓ 2 callersFunction_complete
()
lib/document.js:2900
↓ 2 callersFunction_createConstructor
(schema, baseClass, options)
lib/schema/SubdocumentPath.js:72
↓ 2 callersFunction_createConstructor
(schema, options, baseClass)
lib/schema/documentarray.js:122
↓ 2 callersFunction_getLocalFieldValues
(doc, localField, model, options, virtual, schema)
lib/helpers/populate/getModelsMapForPopulate.js:603
↓ 2 callersFunction_getModelFromConn
(conn, modelName)
lib/helpers/populate/getModelsMapForPopulate.js:579
↓ 2 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:3750
↓ 2 callersFunction_nextDoc
(ctx, doc, pop, callback)
lib/cursor/QueryCursor.js:539
↓ 2 callersFunction_setIsNew
(doc, val)
lib/model.js:3362
↓ 2 callersFunction_start
()
lib/helpers/parallelLimit.js:26
↓ 2 callersFunctionaddModelNamesToMap
(model, map, available, modelNames, options, data, ret, doc, schemaOptions, unpopulatedValue)
lib/helpers/populate/getModelsMapForPopulate.js:484
↓ 2 callersFunctionapplyGlobalDiskUse
(options, model)
lib/helpers/query/applyGlobalOption.js:9
↓ 2 callersFunctionapplyGlobalMaxTimeMS
(options, model)
lib/helpers/query/applyGlobalOption.js:5
↓ 2 callersFunctionapplyGlobalOption
(options, model, optionName)
lib/helpers/query/applyGlobalOption.js:19
↓ 2 callersFunctionapplyHooks
* Register hooks for this model * * @param {Model} model * @param {Schema} schema * @param {Object} options * @api private
lib/helpers/model/applyHooks.js:40
↓ 2 callersFunctionarrayDepth
(arr)
lib/helpers/arrayDepth.js:5
↓ 2 callersFunctionautoTypedModel
()
test/types/models.test.ts:379
↓ 2 callersFunctionautoTypedSchema
()
test/types/schema.test.ts:353
↓ 2 callersFunctionbinaryToString
* Convert binary to a uuid string * @param {Buffer|Binary|String} uuidBin The value to process * @returns {String} The completed uuid-string * @api
lib/schema/uuid.js:66
↓ 2 callersFunctioncastArraysOfNumbers
(arr, self)
lib/schema/operators/helpers.js:24
↓ 2 callersMethodcastObject
(obj: AnyObject, options?: { ignoreCastErrors?: boolean })
types/models.d.ts:218
↓ 2 callersFunctioncheckValidKey
* Since maps are stored as objects under the hood, keys must be strings * and can't contain any invalid characters * @param {String} key * @api pri
lib/types/map.js:338
↓ 2 callersFunctionclone
()
test/helpers/clone.test.js:175
↓ 2 callersFunctioncompile
* Compiles schemas. * @param {Object} tree * @param {Any} proto * @param {String} prefix * @param {Object} options * @api private
lib/helpers/document/compile.js:41
↓ 2 callersFunctionconvertTo_id
* Retrieve the _id of `val` if a Document or Array of Documents. * * @param {Array|Document|Any} val * @param {Schema} schema * @return {Array|Doc
lib/helpers/populate/getModelsMapForPopulate.js:643
↓ 2 callersMethodcopy
* ignore * @param {Readonly<CastError>} other * @api private
lib/error/cast.js:63
↓ 2 callersFunctioncreateEachAsyncMultiError
(aggregatedErrors)
lib/helpers/cursor/eachAsync.js:219
↓ 2 callersMethoddiffIndexes
* Does a dry-run of Model.syncIndexes(), meaning that * the result of this function would be the result of * Model.syncIndexes().
types/indexes.d.ts:24
↓ 2 callersFunctiondone
(err)
examples/population/population-plain-objects.js:100
↓ 2 callersFunctiondone
(err)
examples/population/population-basic.js:97
↓ 2 callersFunctiondone
(err)
examples/population/population-of-existing-doc.js:103
↓ 2 callersFunctiondone
* Clean up
examples/population/population-options.js:132
↓ 2 callersFunctiondone
(err)
examples/population/population-of-multiple-existing-docs.js:118
↓ 2 callersFunctiondone
(err)
benchmarks/populate.js:75
↓ 2 callersMethodensureIndex
(...args: any[])
types/collection.d.ts:12
↓ 2 callersMethodfindAndModify
(...args: any[])
types/collection.d.ts:13
↓ 2 callersMethodfindByIdAndRemove
Creates a `findByIdAndRemove` query, filtering by the given `_id`.
types/models.d.ts:602
↓ 2 callersFunctionflatten
(item)
lib/model.js:4401
↓ 2 callersFunctionformat
(obj, sub, color, shell)
lib/drivers/node-mongodb-native/collection.js:371
↓ 2 callersFunctionformatMessage
(model, kind, value, path, messageFormat, valueType, reason)
lib/error/cast.js:123
↓ 2 callersFunctiongetDefaultBulkwriteResult
()
lib/helpers/getDefaultBulkwriteResult.js:2
↓ 2 callersFunctiongetLatestVersion
* Get the latest version available * @returns {Version}
scripts/website.js:225
↓ 2 callersFunctiongetMessageFormat
(schemaType)
lib/error/cast.js:112
↓ 2 callersFunctiongetPositionalPathType
* ignore. Deprecated re: #6405 * @param {Any} self * @param {String} path * @api private
lib/schema.js:1687
↓ 2 callersFunctiongetRelatedDBIndexes
(model, dbIndexes)
lib/helpers/indexes/getRelatedIndexes.js:12
↓ 2 callersFunctiongetRelatedIndexes
({ baseModelName, discriminatorMapping, indexes, indexesType })
lib/helpers/indexes/getRelatedIndexes.js:26
↓ 2 callersFunctiongetRelatedSchemaIndexes
(model, schemaIndexes)
lib/helpers/indexes/getRelatedIndexes.js:3
↓ 2 callersFunctiongetStringValue
(value)
lib/error/cast.js:88
↓ 2 callersFunctiongetTypeName
(obj)
test/model.middleware.preposttypes.test.js:23
↓ 2 callersFunctiongetValueType
(value)
lib/error/cast.js:97
↓ 2 callersFunctionidGetter
* Returns this documents _id cast to a string. * @api private
lib/helpers/schema/idGetter.js:29
↓ 2 callersFunctioninit
* Init helper. * * @param {Object} self document instance * @param {Object} obj raw mongodb doc * @param {Object} doc object we are initializing
lib/document.js:724
↓ 2 callersFunctioninspect
* Helper for console.log * * @api public * @method inspect * @memberOf MongooseArray
lib/types/array/methods/index.js:528
↓ 2 callersMethodinspect
* inspect helper * @api private
lib/error/validation.js:49
↓ 2 callersFunctionisArrayFilter
(piece)
lib/schema.js:2724
↓ 2 callersFunctionmapSubDoc
* Map sub-directories with custom options * @param {String} subDoc Path to the subdoc, like "tutorials" (no beginning or ending slash) * @param {Doc
docs/source/utils.js:14
↓ 2 callersFunctionoperand
* Apply the operation to the delta (update) clause as * well as track versioning for our where clause. * * @param {Document} self * @param {Object
lib/model.js:577
↓ 2 callersFunctionparallelLimit
(fns, limit, callback)
lib/helpers/parallelLimit.js:9
↓ 2 callersFunctionpugify
* Render a given file with the given options * @param {String} filename The documentation file path to render * @param {import("../docs/source/index
scripts/website.js:399
↓ 2 callersFunctionpugifyAllFiles
* Render all files at once * @param {Boolean} noWatch Set whether to start file watchers for reload * @param {Boolean} isReload Indicate this is a r
scripts/website.js:535
↓ 2 callersMethodpurge
()
test/connection_server.js:66
↓ 2 callersFunctionsearch
(re)load results
docs/js/search.js:43
↓ 2 callersMethodsession
Sets the session. Useful for [transactions](/docs/transactions.html).
types/session.d.ts:16
↓ 2 callersFunctionshouldFlatten
(val)
lib/helpers/common.js:118
↓ 2 callersFunctiontest
(check, fn)
test/model.populate.divergent.test.js:49
↓ 2 callersFunctiontest
()
benchmarks/populate.js:52
↓ 2 callersFunctionthrowOn$where
* Throw an error if there are any $where keys
lib/helpers/populate/getModelsMapForPopulate.js:743
↓ 2 callersFunctionuserLiteral
(name)
test/model.populate.setting.test.js:108
↓ 2 callersMethodwrite
(chunk)
test/index.test.js:76
↓ 1 callersMethod$__runDeferred
()
lib/types/map.js:262
↓ 1 callersMethod$__set
(key, value)
lib/types/map.js:42
↓ 1 callersFunction$applyDefaultsToNested
(val, path, doc)
lib/document.js:474
↓ 1 callersMethod$format
Formatter for debug print args
types/collection.d.ts:37
↓ 1 callersMethod$print
Debug print helper
types/collection.d.ts:39
↓ 1 callersMethod$where
Adds a `$where` clause to this query
types/models.d.ts:514
↓ 1 callersFunctionInternalItemSchemaGen
()
test/model.populate.test.js:8698
↓ 1 callersFunctionMongooseArray
(values, path, doc, schematype)
lib/types/array/index.js:33
↓ 1 callersFunctionTestDoc
* Setup.
test/types.documentarray.test.js:23
↓ 1 callersFunction_addDiscriminatorToObject
(schema, obj)
lib/helpers/model/castBulkWrite.js:263
↓ 1 callersFunction_appendError
(error, query, key, aggregatedError)
lib/helpers/query/castUpdate.js:423
↓ 1 callersFunction_applyCustomWhere
(doc, where)
lib/model.js:247
↓ 1 callersFunction_applyTimestampToUpdateOperator
(op)
lib/helpers/update/applyTimestampsToChildren.js:46
↓ 1 callersMethod_byName
(this: QueryWithHelpers<any, ITest, QueryHelpers>, name: string)
test/types/queries.test.ts:26
↓ 1 callersFunction_cast
(val, numbertype, context)
lib/cast.js:401
↓ 1 callersFunction_castArrayFilters
(arrayFilters, schema, strictQuery, updatedPathsByFilter, query)
lib/helpers/update/castArrayFilters.js:31
↓ 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:1240
↓ 1 callersFunction_checkDone
()
lib/model.js:4243
↓ 1 callersFunction_checkImmutableSubpaths
(subdoc, schematype, priorVal)
lib/document.js:3297
↓ 1 callersFunction_checkSingleFilterKey
(arrayFilter, updateKeys)
lib/helpers/update/removeUnusedArrayFilters.js:18
↓ 1 callersFunction_completeManyLean
(schema, docs, path, opts)
lib/query.js:3802
↓ 1 callersFunction_completeOneLean
(schema, doc, path, res, opts, callback)
lib/query.js:3766
↓ 1 callersFunction_createCollection
()
lib/model.js:1316
↓ 1 callersFunction_deletePath
(schema, name)
lib/schema.js:2417
↓ 1 callersFunction_done
()
lib/model.js:4498
↓ 1 callersFunction_done
(index)
lib/helpers/parallelLimit.js:33
↓ 1 callersFunction_done
(callback)
lib/helpers/updateValidators.js:226
↓ 1 callersFunction_dropDBs
()
test/common.js:172
↓ 1 callersFunction_dropIndexes
(toDrop, collection)
lib/model.js:1623
↓ 1 callersFunction_ensureIndexes
()
lib/model.js:1304
↓ 1 callersFunction_evaluateRequiredFunctions
(doc)
lib/document.js:2663
← previousnext →101–200 of 1,018, ranked by callers