MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

↓ 1 callersFunctioncloneRegExp
(regexp)
lib/helpers/clone.js:173
↓ 1 callersFunctionclose
()
test/connection.test.js:590
↓ 1 callersFunctioncloseDB
()
benchmarks/benchjs/population.js:295
↓ 1 callersFunctioncloseDB
()
benchmarks/benchjs/multiop.js:179
↓ 1 callersFunctioncloseDB
()
benchmarks/benchjs/delete.js:72
↓ 1 callersFunctioncloseDB
()
benchmarks/benchjs/read.js:172
↓ 1 callersFunctioncloseDB
()
benchmarks/benchjs/insert.js:111
↓ 1 callersFunctioncollectIndexes
(schema, prefix, baseSchema)
lib/helpers/schema/getIndexes.js:23
↓ 1 callersFunctioncomplete
()
lib/document.js:3028
↓ 1 callersFunctioncompleteMany
* Given a model and an array of docs, hydrates all the docs to be instances * of the model. Used to initialize docs returned from the db from `find()
lib/helpers/query/completeMany.js:22
↓ 1 callersFunctioncompleteOne
* hydrates a document * * @param {Model} model * @param {Document} doc * @param {Object} res 3rd parameter to callback * @param {Object} fields
lib/query.js:3136
↓ 1 callersFunctioncont
()
benchmarks/benchjs/population.js:217
↓ 1 callersFunctionconvertNewToReturnDocument
* Support the `new` option as an alternative to `returnOriginal` for backwards * compat. * @api private
lib/query.js:3714
↓ 1 callersFunctionconvertTypesToString
(types)
docs/source/api.js:210
↓ 1 callersFunctioncopyAllRequiredFiles
Copy all static files when versionedDeploy is used
scripts/website.js:556
↓ 1 callersFunctioncreate
()
lib/model.js:1776
↓ 1 callersFunctioncreateData
* Data generation
examples/population/population-plain-objects.js:51
↓ 1 callersFunctioncreateData
* Data generation
examples/population/population-basic.js:51
↓ 1 callersFunctioncreateData
* Data generation
examples/population/population-of-existing-doc.js:51
↓ 1 callersFunctioncreateData
* Data generation
examples/population/population-options.js:51
↓ 1 callersFunctioncreateData
* Data generation
examples/population/population-of-multiple-existing-docs.js:51
↓ 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:640
↓ 1 callersFunctioncreateMapNestedSchemaType
(schema, schemaType, path, obj, options)
lib/schema.js:1481
↓ 1 callersFunctioncreateTestContext
()
test/model.updateOne.test.js:2833
↓ 1 callersFunctioncreateWithAggregateErrors
()
test/types/create.test.ts:135
↓ 1 callersFunctioncycle
()
benchmarks/mem.js:120
↓ 1 callersFunctiondecideModelByObject
* gets discriminator model if discriminator key is present in object * @api private
lib/helpers/model/castBulkWrite.js:277
↓ 1 callersFunctiondecrypt
(doc, path)
test/document.test.js:9263
↓ 1 callersFunctiondefaultIndexOptsToFalse
(opts)
lib/helpers/processConnectionOptions.js:49
↓ 1 callersFunctiondelay
(ms)
test/model.updateOne.test.js:3223
↓ 1 callersFunctiondelay
(ms)
test/timestamps.test.js:1048
↓ 1 callersFunctiondelay
(ms)
test/model.test.js:7495
↓ 1 callersFunctiondelay
(ms)
test/query.cursor.test.js:905
↓ 1 callersFunctiondeleteAllHtmlFiles
()
scripts/website.js:96
↓ 1 callersFunctiondoExit
(code)
test/deno.js:37
↓ 1 callersMethoddoSomething
(this: TestDocument)
test/types/plugin.test.ts:46
↓ 1 callersFunctiondocReducer
(doc, seed, path)
lib/document.js:3629
↓ 1 callersFunctiondocs
(arr)
test/types.array.test.js:1753
↓ 1 callersFunctiondone
* Clean up
examples/doc-methods.js:73
↓ 1 callersFunctiondone
(err)
examples/population/population-across-three-collections.js:130
↓ 1 callersFunctiondone
()
benchmarks/mem.js:104
↓ 1 callersFunctiondoneWrapper
(err)
test/schema.validation.test.js:428
↓ 1 callersFunctionencrypt
(doc, path, value)
test/document.test.js:9258
↓ 1 callersFunctionexample
* Use case
examples/doc-methods.js:60
↓ 1 callersFunctionexample
* Population
examples/population/population-plain-objects.js:81
↓ 1 callersFunctionexample
* Population
examples/population/population-basic.js:79
↓ 1 callersFunctionexample
* Population
examples/population/population-of-existing-doc.js:79
↓ 1 callersFunctionexample
* Population
examples/population/population-options.js:103
↓ 1 callersFunctionexample
* Population
examples/population/population-of-multiple-existing-docs.js:92
↓ 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:459
↓ 1 callersFunctionfetch
(done)
lib/helpers/cursor/eachAsync.js:81
↓ 1 callersFunctionfilter
()
test/query.test.js:724
↓ 1 callersMethodfindByFullName
(name)
test/docs/schemas.test.js:53
↓ 1 callersMethodfindByName
(name: string)
test/types/connection.test.ts:114
↓ 1 callersMethodfindOne
( filter: FilterQuery<Blog>, projection: Projection, options: Options )
test/types/queries.test.ts:454
↓ 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:143
↓ 1 callersFunctionflatten
(update, path, options, schema)
lib/helpers/common.js:20
↓ 1 callersFunctionfoo
(model: Model<User, {}, {}, {}>)
test/types/models.test.ts:138
↓ 1 callersMethodfoo
()
test/model.test.js:7339
↓ 1 callersFunctionformatDate
(x, key, shell)
lib/drivers/node-mongodb-native/collection.js:364
↓ 1 callersFunctionformatMessage
* Formats error messages * @api private
lib/error/validator.js:79
↓ 1 callersFunctionformatObjectId
(x, key)
lib/drivers/node-mongodb-native/collection.js:361
↓ 1 callersMethodfullName
()
test/types/document.test.ts:77
↓ 1 callersFunctiongatherChildSchemas
(schema)
lib/schema.js:1187
↓ 1 callersFunctiongenerateRandomCollectionName
()
test/model.test.js:7503
↓ 1 callersFunctiongenerateVersionError
(doc, modifiedPaths)
lib/model.js:454
↓ 1 callersFunctionget
()
test/docs/virtuals.test.js:186
↓ 1 callersMethodgetAnswer
()
test/types/methods.test.ts:8
↓ 1 callersFunctiongetCurrentVersion
* Try to get the current version on the checked-out branch * @returns {Version}
scripts/website.js:250
↓ 1 callersFunctiongetIndexesToCreate
(schema, schemaIndexes, dbIndexes, toDrop)
lib/model.js:1538
↓ 1 callersFunctiongetIndexesToDrop
(schema, schemaIndexes, dbIndexes)
lib/model.js:1567
↓ 1 callersFunctiongetLatestVersionOf
* Get the latest version for the provided major version * @param {number} version major version to search for * @returns {Version}
scripts/website.js:234
↓ 1 callersFunctiongetMapPath
(schema, path)
lib/schema.js:1233
↓ 1 callersFunctiongetNextbdId
()
benchmarks/benchjs/multiop.js:174
↓ 1 callersFunctiongetNextbdId
()
benchmarks/benchjs/read.js:167
↓ 1 callersFunctiongetNextbmId
()
benchmarks/benchjs/multiop.js:169
↓ 1 callersFunctiongetNextbmId
()
benchmarks/benchjs/read.js:162
↓ 1 callersFunctiongetNextcId
()
benchmarks/benchjs/population.js:285
↓ 1 callersFunctiongetNextdId
(i)
benchmarks/benchjs/population.js:290
↓ 1 callersFunctiongetNextdId
()
benchmarks/benchjs/multiop.js:164
↓ 1 callersFunctiongetNextdId
()
benchmarks/benchjs/read.js:157
↓ 1 callersFunctiongetNextmId
()
benchmarks/benchjs/multiop.js:159
↓ 1 callersFunctiongetNextmId
()
benchmarks/benchjs/read.js:152
↓ 1 callersFunctiongetOwnPropertyDescriptors
(object)
lib/helpers/document/compile.js:213
↓ 1 callersFunctiongetPartialFilterExpression
(index, indexesType)
lib/helpers/indexes/getRelatedIndexes.js:53
↓ 1 callersFunctiongetPaymentModel
()
test/model.updateOne.test.js:3103
↓ 1 callersFunctiongetPaymentWithDotSeparatedPaths
()
test/model.updateOne.test.js:3126
↓ 1 callersFunctiongetPositionalPath
(self, path, cleanPath)
lib/schema.js:1753
↓ 1 callersFunctiongetProperty
(obj, prop)
lib/helpers/get.js:57
↓ 1 callersFunctiongetStrictQuery
(queryOptions, schemaUserProvidedOptions, schemaOptions, context)
lib/cast.js:425
↓ 1 callersMethodgetString
()
test/model.discriminator.test.js:1363
↓ 1 callersFunctiongetTeacherPosts
(id, skip)
test/model.populate.test.js:6212
↓ 1 callersFunctiongetTestRouteData
()
test/types/docArray.test.ts:63
↓ 1 callersFunctiongetTests
* Load all test file contents with acquit * @returns {Object[]} acquit ast array
scripts/website.js:74
↓ 1 callersFunctiongetUri
(default_uri, db)
test/common.js:92
↓ 1 callersFunctiongetUriReadPreference
(connectionString)
lib/helpers/processConnectionOptions.js:43
← previousnext →301–400 of 1,018, ranked by callers