MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

Methodhello
()
test/schema.test.js:2734
Methodhello
()
test/schema.test.js:2740
FunctionhelloPlugin
(schema)
test/index.test.js:452
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:112
FunctionidSetter
* * @param {String} v the id to set * @api private
lib/helpers/schema/idGetter.js:43
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:489
Functionincrement
()
lib/model.js:943
Functionindex
()
test/types/schemaTypeOptions.test.ts:35
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:505
Functioninheritance
()
test/types/models.test.ts:237
FunctioninsertManyTest
()
test/types/models.test.ts:66
Functioninspect
* Helper for console.log * * @method inspect * @api public * @memberOf MongooseDocumentArray
lib/types/DocumentArray/methods/index.js:249
Methodinspect
* inspect helper * @api private
lib/error/setOptionError.js:35
FunctioninstanceFn
()
test/document.test.js:13182
FunctioninstanceFn
()
test/types/schema.test.ts:530
FunctionisRequired
()
test/schema.validation.test.js:280
Functioniter
(mem)
lib/model.js:679
Functionlast
(v)
test/schema.test.js:560
Functionlowercase
(v)
test/schema.test.js:503
Functionmap
(o)
lib/drivers/node-mongodb-native/collection.js:358
Functionmaps
()
test/types/schema.test.ts:1130
FunctionmatchValidator
(v)
lib/schema/string.js:534
Functionmiddleware
(next)
test/model.discriminator.test.js:375
FunctionmodelRemoveOptions
()
test/types/models.test.ts:514
FunctionmyName
()
test/types/schema.test.ts:876
FunctionmyPlugin
(schema)
test/model.discriminator.test.js:2027
FunctionmyValidator
()
test/schema.validation.test.js:921
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:545
Functionnotify
(event)
lib/types/DocumentArray/methods/index.js:289
Functionobfuscate
(email)
test/docs/getters-setters.test.js:34
MethodopenUri
()
test/driver.test.js:66
FunctionoverwriteBulkWriteContents
()
test/types/models.test.ts:335
FunctionpluginFunction
(schema: Schema<any>, options: SomePluginOptions)
test/types/schema.test.ts:758
FunctionpluginFunction2
(schema: Schema<any>)
test/types/schema.test.ts:776
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.test.ts:752
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
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:566
FunctionpreMiddlewareFn
(next, opts)
test/types/middleware.test.ts:4
FunctionpreMiddlewareFn
(next, opts)
test/types/middleware.preposttypes.test.ts:8
FunctionpreValidate
(next)
test/model.discriminator.test.js:563
Functionpull
* Pulls items from the array atomically. * * @param {...Object} [args] * @api public * @method pull * @memberOf MongooseDocumentArray
lib/types/DocumentArray/methods/index.js:207
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:604
Functionpush
* Wraps [`Array#push`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push) with proper change tracking. * * @param
lib/types/DocumentArray/methods/index.js:190
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:678
FunctionrawDocSyntax
()
test/types/models.test.ts:24
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:738
FunctionremoveSufix
(name)
test/document.test.js:12477
Functionrequired
()
test/model.validate.test.js:136
FunctionresetId
(v)
lib/schema/objectid.js:281
FunctionschemaInstanceMethodsAndQueryHelpers
()
test/types/models.test.ts:444
FunctionschemaInstanceMethodsAndQueryHelpersOnConnection
()
test/types/connection.test.ts:102
Functionset
(i, val, skipModified)
lib/types/DocumentArray/methods/index.js:317
Functionset
* Sets the casted `val` at index `i` and marks the array modified. * * #### Example: * * // given documents based on the following
lib/types/array/methods/index.js:769
Functionset
(v)
test/schema.test.js:3023
Functionset
(v)
test/types.map.test.js:621
Functionset
(v)
test/document.test.js:7066
Functionset
()
test/types/virtuals.test.ts:107
Functionset
(v)
test/docs/virtuals.test.js:187
FunctionsetAsObject
()
test/types/base.test.ts:55
FunctionsetLat
(val)
test/model.test.js:1479
Functionshift
* Wraps [`Array#shift`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift) with proper change tracking. * @api pri
lib/types/DocumentArray/methods/index.js:220
Functionshift
* Wraps [`Array#shift`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift) with proper change tracking. * * ###
lib/types/array/methods/index.js:800
Functionsort
* Wraps [`Array#sort`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort) with proper change tracking. * * #### No
lib/types/array/methods/index.js:821
Functionsplice
* Wraps [`Array#splice`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice) with proper change tracking and casting.
lib/types/DocumentArray/methods/index.js:233
Functionsplice
* Wraps [`Array#splice`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice) with proper change tracking and casting.
lib/types/array/methods/index.js:841
FunctionstaticFn
()
test/model.test.js:7416
FunctionstaticFn
()
test/types/schema.test.ts:524
FunctionstoreShard
()
lib/plugins/sharding.js:57
Functionsuccess
(doc)
test/model.populate.test.js:1932
FunctiontAndDocSyntax
()
test/types/models.test.ts:49
Functiontest
()
test/types/discriminator.test.ts:27
Functiontest
(dbModel: Model<DocT>)
test/types/models.test.ts:652
FunctiontestGenericQuery
()
test/types/queries.test.ts:173
FunctiontestInferTimestamps
()
test/types/schema.test.ts:860
FunctiontestMethods
()
test/types/document.test.ts:70
FunctiontestMiddleware
()
test/schema.test.js:2162
FunctiontestPathsParam
()
test/types/populate.test.ts:95
FunctiontestRequiredId
()
test/types/document.test.ts:92
FunctiontoBSON
()
lib/types/DocumentArray/methods/index.js:21
FunctiontoBSON
()
lib/types/array/methods/index.js:872
FunctiontoBSON
()
test/helpers/clone.test.js:301
FunctiontoJSON
()
test/helpers/clone.test.js:201
MethodtoJSON
* Converts this map to a native JavaScript Map for `JSON.stringify()`. Set * the `flattenMaps` option to convert this map to a POJO instead. *
lib/types/map.js:245
MethodtoJSON
* Ensure `name` and `message` show up in toJSON output re: gh-9296 * @api private
lib/error/validator.js:49
FunctiontoLower
(email)
test/docs/getters-setters.test.js:146
FunctiontoObject
* Returns a native js Array of plain js objects * * #### Note: * * _Each sub-document is converted to a plain object by calling its `#toOb
lib/types/DocumentArray/methods/index.js:163
FunctiontoObject
()
test/helpers/clone.test.js:57
FunctiontoString
()
test/helpers/clone.test.js:190
MethodtoString
* Console.log helper
lib/error/validation.js:41
MethodtoString
* Console.log helper
lib/error/setOptionError.js:27
FunctiontoUUID
(string)
test/model.findOneAndUpdate.test.js:1624
Functiontransform
(doc, id)
test/model.populate.test.js:9399
Functionunshift
* Wraps [`Array#unshift`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift) with proper change tracking. * * #
lib/types/array/methods/index.js:918
Functionuptick
()
test/model.test.js:1485
Functionvalid
(v)
test/types.buffer.test.js:15
← previousnext →901–1,000 of 1,018, ranked by callers