MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,533 in github.com/Automattic/mongoose

FunctionhelloPlugin
(schema)
test/index.test.js:575
Functionhelper
(name)
test/schema.test.js:1955
FunctionhydrateWithStrictOption
()
test/types/models.test.ts:1430
Functionid
* Searches array items for the first document with a matching _id. * * #### Example: * * const embeddedDoc = m.array.id(some_id); *
lib/types/documentArray/methods/index.js:132
Functionincludes
* Return whether or not the `obj` is included in the array. * * @param {object} obj the item to check * @param {number} fromIndex * @retur
lib/types/array/methods/index.js:529
Functionindex
()
test/types/schemaTypeOptions.test.ts:63
FunctionindexOf
* Return the index of `obj` or `-1` if not found. * * @param {object} obj the item to look for * @param {number} fromIndex * @return {numb
lib/types/array/methods/index.js:545
FunctioninferPojoType
()
test/types/inferrawdoctype.test.ts:4
Functioninheritance
()
test/types/models.test.ts:338
FunctioninsertManyTest
()
test/types/models.test.ts:171
MethodinsertOne
(doc, options)
test/driver.test.js:92
Functioninspect
* Helper for console.log * * @method inspect * @api public * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:398
FunctioninstanceFn
()
test/document.test.js:15588
FunctioninstanceFn
()
test/types/schema.create.test.ts:552
FunctioninstanceFn
()
test/types/schema.test.ts:553
FunctionisAdult
()
test/types/schema.create.test.ts:1335
FunctionisAdult
()
test/types/schema.test.ts:1393
MethodisAdult
()
test/types/schema.create.test.ts:1319
FunctionisBuiltInMiddleware
lib/helpers/buildMiddlewareFilter.js:9
FunctionisCastError
test/schema.test.js:2846
FunctionisRequired
()
test/schema.validation.test.js:365
Functioniter
(mem)
lib/document.js:5659
Functionlast
(v)
test/schema.test.js:562
FunctionleanFalse
()
test/types/lean.test.ts:369
Functionlowercase
(v)
test/schema.test.js:505
Functionm1
()
test/types/queries.test.ts:1238
Methodm1
()
test/types/queries.test.ts:1233
Methodm2
()
test/types/queries.test.ts:1234
Functionmain
()
test/types/lean.test.ts:244
Functionmap
(o)
lib/drivers/node-mongodb-native/collection.js:327
Functionmaps
()
test/types/schema.create.test.ts:1183
Functionmaps
()
test/types/schema.test.ts:1234
FunctionmatchValidator
(v)
lib/schema/string.js:542
Functionmessage
test/schema.validation.test.js:1533
Functionmessage
(props: { path: string })
test/types/schemaTypeOptions.test.ts:38
Functionmiddleware
()
test/model.discriminator.test.js:436
FunctionmiddlewareFiltersFromLastArg
* kareem `getOptions` implementation for custom statics and methods: reads the * `middleware` option from the call's last argument if it is a plain o
lib/helpers/buildMiddlewareFilter.js:30
FunctionmodelRemoveOptions
()
test/types/models.test.ts:613
FunctionmodelValidateReturnsCastedObject
()
test/types/models.test.ts:100
FunctionmongooseMapObjectIdKeys
()
test/types/maps.test.ts:89
FunctionmongooseQueryOptions
()
test/types/queries.test.ts:976
MethodmyMethod
()
test/types/loadclass.test.ts:7
FunctionmyName
()
test/types/schema.create.test.ts:934
FunctionmyName
()
test/types/schema.test.ts:921
FunctionmyPlugin
(schema)
test/model.discriminator.test.js:2123
MethodmyStatic
()
test/types/loadclass.test.ts:8
FunctionmyValidator
()
test/schema.validation.test.js:1058
MethodmyVirtual
()
test/types/loadclass.test.ts:9
FunctionnestedProjectionOnArraysAndSubdocs
()
test/types/queries.test.ts:1359
FunctionnestedProjectionOnDocumentArrayWithMethods
()
test/types/queries.test.ts:1298
FunctionnonAtomicPush
* Pushes items to the array non-atomically. * * #### Note: * * _marks the entire array as modified, which if saved, will store it as a `$s
lib/types/array/methods/index.js:599
Functionnotify
(event)
lib/types/documentArray/methods/index.js:440
Functionobfuscate
(email)
test/docs/getters-setters.test.js:34
FunctiononInitialized
()
lib/helpers/cursor/waitForInitialization.js:5
FunctionopenExistingConversation
()
docs/js/ask-ai.js:163
MethodopenUri
()
test/driver.test.js:86
Functionoptionality
()
test/types/inferrawdoctype.test.ts:56
FunctionoverwriteBulkWriteContents
()
test/types/models.test.ts:436
Methodpfunc
()
test/types/queries.test.ts:1034
Functionplugin
()
test/model.discriminator.test.js:1395
FunctionpluginFunction
(schema: Schema<any>, options: SomePluginOptions)
test/types/schema.create.test.ts:814
FunctionpluginFunction
(schema: Schema<any>, options: SomePluginOptions)
test/types/schema.test.ts:801
FunctionpluginFunction2
(schema: Schema<any>)
test/types/schema.create.test.ts:834
FunctionpluginFunction2
(schema: Schema<any>)
test/types/schema.test.ts:821
FunctionpluginGeneric
(schema: Schema)
test/types/plugin.test.ts:62
FunctionpluginMethods
(schema: Schema<Test, any, TestInstanceMethods>)
test/types/plugin.test.ts:18
FunctionpluginOptions
()
test/types/schema.create.test.ts:808
FunctionpluginOptions
()
test/types/schema.test.ts:795
FunctionpluginQueryHelpers
(schema: Schema<Test, any, any, TestQueryHelpers>)
test/types/plugin.test.ts:12
FunctionpluginStatics
(schema: Schema<Test, TestModel, any, TestQueryHelpers, any, TestStaticMethods>)
test/types/plugin.test.ts:24
FunctionpluginVirtuals
(schema: Schema<Test, any, any, any, TestVirtuals>)
test/types/plugin.test.ts:3
Functionpluralize
(name)
test/utils.test.js:397
Functionpop
* Wraps [`Array#pop`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop) with proper change tracking. * @a
lib/types/documentArray/methods/index.js:263
Functionpop
* Wraps [`Array#pop`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/pop) with proper change tracking. * * #### Note
lib/types/array/methods/index.js:620
FunctionpreMiddlewareFn
(opts)
test/types/middleware.test.ts:5
FunctionpreValidate
()
test/model.discriminator.test.js:623
MethodprintName
(this: IUser)
test/types/models.test.ts:1288
MethodprintNamePrefixed
(this: IUser, prefix: string)
test/types/models.test.ts:1287
Functionpull
* Pulls items from the array atomically. * * @param {...object} [args] * @api public * @method pull * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:292
Functionpull
* Pulls items from the array atomically. Equality is determined by casting * the provided value to an embedded document and comparing using * [t
lib/types/array/methods/index.js:658
Functionpush
* Wraps [`Array#push`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push) with proper change tracking. *
lib/types/documentArray/methods/index.js:246
Functionpush
* Wraps [`Array#push`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push) with proper change tracking. * * #### Ex
lib/types/array/methods/index.js:732
FunctionqueryById
(id: string)
test/types/inferrawdoctype.test.ts:492
FunctionqueryFeatures
( query: mongoose.Query<R, T, object, T, TQueryOp>, { params }: QueryFeaturesProps )
test/types/queries.test.ts:1183
FunctionrawDocSyntax
()
test/types/models.test.ts:31
Functionref
()
test/model.populate.test.js:11522
FunctionregisterPlugin
()
test/types/plugin.test.ts:76
Functionremove
* Alias of [pull](https://mongoosejs.com/docs/api/array.html#MongooseArray.prototype.pull()) * * @see MongooseArray#pull https://mongoosejs.com/
lib/types/array/methods/index.js:797
FunctionremoveSufix
(name)
test/document.test.js:13280
FunctionremoveVirtual
()
test/types/virtuals.test.ts:90
Functionrequired
()
test/model.validate.test.js:233
Functionrequired
()
test/document.test.js:14472
FunctionresetId
(v)
lib/schema/objectId.js:297
FunctionresizePanel
(event)
docs/js/ask-ai.js:298
Functionreverse
* Wraps [`Array#reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse) * with proper change trac
lib/types/documentArray/methods/index.js:348
FunctionsaveSubdocsPostDeleteOne
()
lib/plugins/saveSubdocs.js:77
FunctionsaveSubdocsPostSave
()
lib/plugins/saveSubdocs.js:42
FunctionsaveSubdocsPreDeleteOne
()
lib/plugins/saveSubdocs.js:62
FunctionsaveSubdocsPreSave
()
lib/plugins/saveSubdocs.js:22
FunctionschemaDouble
()
test/types/schema.create.test.ts:1827
← previousnext →1,301–1,400 of 1,533, ranked by callers