MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,431 in github.com/Automattic/mongoose

MethodprintNamePrefixed
(this: IUser, prefix: string)
test/types/models.test.ts:1192
Functionpull
* Pulls items from the array atomically. * * @param {...object} [args] * @api public * @method pull * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:269
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:642
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:223
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:716
FunctionqueryById
(id: string)
test/types/inferrawdoctype.test.ts:434
FunctionqueryFeatures
( query: mongoose.Query<R, T, object, T, TQueryOp>, { params }: QueryFeaturesProps )
test/types/queries.test.ts:830
FunctionrawDocSyntax
()
test/types/models.test.ts:27
Functionref
()
test/model.populate.test.js:11342
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:778
FunctionremoveSufix
(name)
test/document.test.js:13652
Functionrequired
()
test/model.validate.test.js:212
Functionrequired
()
test/document.test.js:14962
FunctionresetId
(v)
lib/schema/objectId.js:297
FunctionresizePanel
(event)
docs/js/ask-ai.js:271
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:325
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
FunctionschemaDouble
()
test/types/schema.test.ts:1865
FunctionschemaInstanceMethodsAndQueryHelpers
()
test/types/models.test.ts:539
FunctionschemaInstanceMethodsAndQueryHelpersOnConnection
()
test/types/connection.test.ts:115
FunctionschemaMapPropertyReducer
(accum, [path, propertyConfig])
lib/schema.js:1038
Functionset
(i, val, skipModified)
lib/types/documentArray/methods/index.js:443
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:809
Functionset
(v)
test/schema.test.js:3106
Functionset
(v)
test/types.map.test.js:646
Functionset
(v)
test/document.test.js:7711
Functionset
()
test/model.discriminator.test.js:2284
Functionset
()
test/types/virtuals.test.ts:115
Functionset
(v)
test/docs/virtuals.test.js:187
FunctionsetAsObject
()
test/types/base.test.ts:77
FunctionsetLat
(val)
test/model.test.js:1484
FunctionshardingPluginPostInit
()
lib/plugins/sharding.js:19
FunctionshardingPluginPostSave
()
lib/plugins/sharding.js:28
FunctionshardingPluginPreDeleteOne
()
lib/plugins/sharding.js:32
FunctionshardingPluginPreSave
()
lib/plugins/sharding.js:24
FunctionshardingPluginPreUpdateOne
()
lib/plugins/sharding.js:36
Functionshift
* Wraps [`Array#shift`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift) with proper change tracking.
lib/types/documentArray/methods/index.js:283
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:840
Functionsort
* Wraps [`Array#sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) * with proper change tracking.
lib/types/documentArray/methods/index.js:343
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:861
Functionsplice
* Wraps [`Array#splice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) with proper change tracking an
lib/types/documentArray/methods/index.js:310
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:881
FunctionstandardSchemaModelValidate
()
test/types/models.test.ts:52
FunctionstartResize
(event)
docs/js/ask-ai.js:260
FunctionstaticFn
()
test/model.test.js:9111
FunctionstaticFn
()
test/types/schema.create.test.ts:546
FunctionstaticFn
()
test/types/schema.test.ts:548
FunctionstopResize
()
docs/js/ask-ai.js:276
FunctionstoreShard
()
lib/plugins/sharding.js:69
FunctionstringEnumArrayInfer
()
test/types/schema.test.ts:1090
FunctionstringEnumInfer
()
test/types/schema.test.ts:1066
Functionsuccess
(doc)
test/model.populate.test.js:1934
Functiont
(locale?: string)
test/types/models.test.ts:132
FunctiontAndDocSyntax
()
test/types/models.test.ts:150
Functiontest
()
test/types/discriminator.test.ts:28
Functiontest
(dbModel: Model<DocT>)
test/types/models.test.ts:749
Functiontest
()
test/encryption/encryption.test.js:146
FunctiontestCombinedFlattenOptions
()
test/types/document.test.ts:800
FunctiontestFlattenUUIDs
()
test/types/document.test.ts:748
FunctiontestGenericQuery
()
test/types/queries.test.ts:214
FunctiontestInferHydratedDocTypeFromSchema
()
test/types/schema.create.test.ts:1914
FunctiontestInferHydratedDocTypeFromSchema
()
test/types/schema.test.ts:2020
FunctiontestInferRawDocTypeFromSchema
()
test/types/schema.create.test.ts:1890
FunctiontestInferRawDocTypeFromSchema
()
test/types/schema.test.ts:1998
FunctiontestInferTimestamps
()
test/types/schema.create.test.ts:918
FunctiontestInferTimestamps
()
test/types/schema.test.ts:906
FunctiontestMethods
()
test/types/document.test.ts:76
FunctiontestMiddleware
()
test/schema.test.js:2211
FunctiontestNewSchemaWithMethodsAndVirtuals
()
test/types/schema.test.ts:2111
FunctiontestObjectIdsInsideMaps
()
test/types/document.test.ts:886
FunctiontestPathsParam
()
test/types/populate.test.ts:95
FunctiontestWithLevel1NestedPaths
()
test/types/models.test.ts:1035
FunctionthisParameterPattern
()
test/types/loadclass.test.ts:50
FunctiontimestampsPreSave
()
lib/helpers/timestamps/setupTimestamps.js:89
FunctiontoBSON
()
lib/types/documentArray/methods/index.js:23
FunctiontoBSON
()
lib/types/array/methods/index.js:912
FunctiontoBSON
()
test/types/document.test.ts:597
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:259
MethodtoJSON
* Ensure `name` and `message` show up in toJSON output re: gh-9296 * @api private
lib/error/validator.js:50
MethodtoJSONSchema
* Returns this schema type's representation in a JSON schema. * * @param {object} [options] * @param {boolean} [options.useBsonType=false] If
lib/schema/map.js:126
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:196
FunctiontoObject
()
test/helpers/clone.test.js:57
FunctiontoObjectToJSONTest
()
test/types/loadclass.test.ts:110
FunctiontoString
()
lib/types/documentArray/methods/index.js:27
FunctiontoString
()
test/helpers/clone.test.js:190
MethodtoString
* Console.log helper
lib/error/validation.js:43
MethodtoString
* Console.log helper
lib/error/setOptionError.js:29
FunctiontoUUID
(string)
test/model.findOneAndUpdate.test.js:1750
FunctiontoggleTheme
()
docs/js/theme-toggle.js:12
Functiontrace
(fn, contextFactory)
lib/tracing.js:23
FunctiontrackTransactionPreSave
()
lib/plugins/trackTransaction.js:12
Functiontransform
(doc, id)
test/model.populate.test.js:9755
← previousnext →1,301–1,400 of 1,431, ranked by callers