MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,456 in github.com/Automattic/mongoose

↓ 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:4369
↓ 1 callersFunctionapplyVirtuals
* Apply a given schema's virtuals to a given POJO * * @param {Schema} schema * @param {object} obj * @param {string[]} [virtuals] optional whiteli
lib/helpers/document/applyVirtuals.js:17
↓ 1 callersMethodapplyVirtuals
(obj: AnyObject, virtalsToApply?: string[])
types/models.d.ts:265
↓ 1 callersFunctionapplyVirtualsToChildren
* Apply virtuals to any subdocuments * * @param {Schema} schema subdocument schema * @param {object} res subdocument * @param {string[]} [virtuals
lib/helpers/document/applyVirtuals.js:49
↓ 1 callersFunctionassertDocumentStructure
(payment)
test/model.updateOne.test.js:3291
↓ 1 callersFunctionassertErrorProperties
(user)
test/model.test.js:8511
↓ 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 callersFunctionautoEncryptionOptions
()
test/encryption/encryption.test.js:48
↓ 1 callersFunctionautoTypedModelConnection
()
test/types/connection.test.ts:86
↓ 1 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:21
↓ 1 callersFunctionbuildMarkdown
* Build the Markdown source for a parsed API page. * @param {DocsObj} data The parsed API page data * @returns {String}
docs/source/api.js:280
↓ 1 callersFunctionbuildNestedPath
* `schemaMap`s are JSON schemas, which use the following structure to represent objects: * { field: { bsonType: 'object', properties: { ... } }
lib/schema.js:1027
↓ 1 callersFunctionbuildPreSavePromise
(document, options)
lib/model.js:3678
↓ 1 callersFunctionbuildProps
(prefix)
benchmarks/findOneAndUpdateSimple.js:100
↓ 1 callersMethodbyName
(this: ProjectModelQuery, name: string)
test/types/queryhelpers.test.ts:13
↓ 1 callersFunctioncalledWithString
()
test/model.middleware.preposttypes.test.js:153
↓ 1 callersFunctioncanMerge
* Determine if we can merge the given value as a query filter. Override for mquery.canMerge() to allow null
lib/query.js:5858
↓ 1 callersMethodcast
(val: unknown)
test/types/schema.create.test.ts:382
↓ 1 callersMethodcast
(val: unknown)
test/types/schema.test.ts:385
↓ 1 callersMethodcast
(val)
test/docs/schematypes.test.js:40
↓ 1 callersFunctioncastArithmetic
(val)
lib/helpers/query/cast$expr.js:183
↓ 1 callersFunctioncastComparison
(val, schema, strictQuery)
lib/helpers/query/cast$expr.js:208
↓ 1 callersFunctioncastIn
(val, schema, strictQuery)
lib/helpers/query/cast$expr.js:154
↓ 1 callersFunctioncastNumberOperator
(val)
lib/helpers/query/cast$expr.js:142
↓ 1 callersFunctioncastPipelineOperator
(op, val)
lib/helpers/query/castUpdate.js:176
↓ 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:564
↓ 1 callersFunctioncheckCalls
()
test/model.middleware.preposttypes.test.js:150
↓ 1 callersFunctioncheckDiscriminatorModelsFindDocumentsOfItsType
(fields)
test/model.discriminator.querying.test.js:264
↓ 1 callersFunctioncheckDiscriminatorModelsFindOneDocumentOfItsType
(fields)
test/model.discriminator.querying.test.js:485
↓ 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/document.js:5389
↓ 1 callersFunctioncheckFolder
(folder)
test/types/check-types-filename.js:6
↓ 1 callersFunctioncheckHydratesCorrectModels
(fields)
test/model.discriminator.querying.test.js:155
↓ 1 callersFunctioncheckRequireFilter
(filter, options)
lib/query.js:191
↓ 1 callersFunctioncleanParent
(doc, path, seen = new Set())
lib/helpers/document/cleanModifiedSubpaths.js:35
↓ 1 callersMethodclientEncryption
* If auto encryption is enabled, returns a ClientEncryption instance that is configured with the same settings that * Mongoose's underlying Mongo
types/models.d.ts:1418
↓ 1 callersFunctioncloneAndTestDeepEquals
()
test/schematype.test.js:119
↓ 1 callersFunctioncloneArray
(arr, options)
lib/helpers/clone.js:199
↓ 1 callersFunctioncloneObject
(obj, options, isArrayChild)
lib/helpers/clone.js:160
↓ 1 callersFunctioncloneRegExp
(regexp)
lib/helpers/clone.js:246
↓ 1 callersFunctionclose
()
test/connection.test.js:678
↓ 1 callersFunctioncloseMenu
()
docs/js/mobile-navbar-toggle.js:14
↓ 1 callersFunctioncollectIndexes
(schema, prefix, baseSchema)
lib/helpers/schema/getIndexes.js:23
↓ 1 callersFunctioncompleteOne
* hydrates a document * * @param {Model} model * @param {Document} doc * @param {object} res 3rd parameter to callback * @param {object} fields
lib/query.js:3361
↓ 1 callersFunctionconvertNewToReturnDocument
* Support the `new` option as an alternative to `returnOriginal` for backwards * compat. * @api private
lib/query.js:3984
↓ 1 callersFunctionconvertTypesToString
(types, typesDescription)
docs/source/api.js:217
↓ 1 callersFunctioncopyAllRequiredFiles
Copy all static files when versionedDeploy is used
scripts/website.js:666
↓ 1 callersFunctioncopyVendorFiles
()
scripts/website.js:660
↓ 1 callersFunctioncreate
()
lib/model.js:1766
↓ 1 callersFunctioncreateCustomSchema
()
test/document.test.js:14958
↓ 1 callersFunctioncreateDocs
benchmarks/insertManySimple.js:29
↓ 1 callersFunctioncreateDollarPathTestContext
()
test/model.updateOne.test.js:3625
↓ 1 callersFunctioncreateFetch
()
lib/helpers/cursor/eachAsync.js:75
↓ 1 callersFunctioncreateImmutableSetter
(path, immutable)
lib/helpers/schematype/handleImmutable.js:21
↓ 1 callersFunctioncreateLogicalQueryOperatorHandler
(op)
lib/schema/array.js:634
↓ 1 callersFunctioncreateMod
(mod)
test/helpers/populate.splitPopulateQuery.test.js:18
↓ 1 callersFunctioncreateSchema
(path, subSchema)
test/document.test.js:13861
↓ 1 callersMethodcreateSearchIndex
* Create an [Atlas search index](https://www.mongodb.com/docs/atlas/atlas-search/create-index/). * This function only works when connected to Mon
types/models.d.ts:342
↓ 1 callersFunctioncreateSlug
(value)
scripts/website.js:727
↓ 1 callersFunctioncreateSomeModelAndDoSomething
()
test/types/lean.test.ts:348
↓ 1 callersFunctioncreateTestContext
()
test/model.findOneAndUpdate.test.js:2428
↓ 1 callersFunctioncreateTestContext
()
test/model.hydrate.test.js:450
↓ 1 callersFunctioncreateTestContext
()
test/model.updateOne.test.js:2952
↓ 1 callersFunctioncreateTestContext
({ versionKey, defaults, validation, optimisticConcurrency } = {})
test/model.test.js:3169
↓ 1 callersFunctioncreateTestContext
({ employeeNameMinLength, employeeName = 'john' } = {})
test/types.map.test.js:1888
↓ 1 callersFunctioncreateTestContext
()
test/types.documentarray.test.js:951
↓ 1 callersFunctioncreateTestContext
({ refPath } = {})
test/document.test.js:3276
↓ 1 callersFunctioncreateTestContext
* Unified test context factory that creates a schema with all hooks registered. * Tests can check counters for any hook type without needing separa
test/model.skip.middleware.test.js:655
↓ 1 callersFunctioncreateTestContext
()
test/versioning.test.js:722
↓ 1 callersFunctioncreateTestContext
(options)
test/model.middleware.test.js:691
↓ 1 callersFunctioncreateTestContext
(options)
test/model.insertMany.test.js:921
↓ 1 callersFunctioncreateTestContext
()
test/model.populate.test.js:12332
↓ 1 callersFunctioncreateWithAggregateErrors
()
test/types/create.test.ts:133
↓ 1 callersFunctiondecideModelByObject
* gets discriminator model if discriminator key is present in object * @api private
lib/helpers/model/castBulkWrite.js:300
↓ 1 callersFunctiondecrypt
(doc, path)
test/document.test.js:9927
↓ 1 callersFunctiondefaultIndexOptsToFalse
(opts)
lib/helpers/processConnectionOptions.js:49
↓ 1 callersFunctiondelay
(ms)
test/model.updateOne.test.js:3637
↓ 1 callersFunctiondelay
(ms)
test/timestamps.test.js:1046
↓ 1 callersFunctiondelay
(ms)
test/model.test.js:10087
↓ 1 callersFunctiondelay
(ms)
test/query.cursor.test.js:991
↓ 1 callersFunctiondeleteAllHtmlFiles
()
scripts/website.js:122
↓ 1 callersFunctiondoExit
(code)
test/deno.mjs:34
↓ 1 callersFunctiondocs
(arr)
test/types.array.test.js:1753
↓ 1 callersFunctiondownloadCryptShared
()
scripts/setup-encryption-tests.js:16
↓ 1 callersFunctionencrypt
(doc, path, value)
test/document.test.js:9922
↓ 1 callersFunctionexists
* @param {string} path * * @returns {boolean}
test/encryption/encryption.test.js:23
↓ 1 callersFunctionextractTextUrlFromTag
* Extract the Text and Url from a description if any * @param {Tag} tag The tag to process the resulting object from * @param {PropContext} ctx The
docs/source/api.js:591
↓ 1 callersFunctionfilter
()
test/query.test.js:655
↓ 1 callersMethodfindByFullName
(name)
test/docs/schemas.test.js:53
↓ 1 callersFunctionfindChildModel
* Check if there is an embedded schematype in the given schematype. Handles drilling down into primitive * arrays and maps in case of array of array
lib/helpers/model/applyHooks.js:134
↓ 1 callersMethodfindOne
( filter: QueryFilter<mongoose.WithLevel1NestedPaths<Blog>>, projection: Projection, options
test/types/queries.test.ts:531
↓ 1 callersMethodfindSomething
(this: TestModel)
test/types/plugin.test.ts:49
↓ 1 callersFunctionfixNoAsyncFn
()
docs/js/convert-old-anchorid.js:73
↓ 1 callersFunctionfixSubIndexPaths
* Checks for indexes added to subdocs using Schema.index(). * These indexes need their paths prefixed properly. * * schema._indexes = [ [inde
lib/helpers/schema/getIndexes.js:142
↓ 1 callersFunctionflatten
(update, path, options, schema)
lib/helpers/common.js:20
↓ 1 callersFunctionfoo
(model: Model<User, {}, {}, {}>)
test/types/models.test.ts:240
↓ 1 callersMethodfoo
()
test/model.test.js:9034
← previousnext →301–400 of 1,456, ranked by callers