Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,431 in github.com/Automattic/mongoose
⨍
Functions
1,431
◇
Types & classes
784
Method
printNamePrefixed
(this: IUser, prefix: string)
test/types/models.test.ts:1192
Function
pull
* Pulls items from the array atomically. * * @param {...object} [args] * @api public * @method pull * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:269
Function
pull
* 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
Function
push
* 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
Function
push
* 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
Function
queryById
(id: string)
test/types/inferrawdoctype.test.ts:434
Function
queryFeatures
( query: mongoose.Query<R, T, object, T, TQueryOp>, { params }: QueryFeaturesProps )
test/types/queries.test.ts:830
Function
rawDocSyntax
()
test/types/models.test.ts:27
Function
ref
()
test/model.populate.test.js:11342
Function
registerPlugin
()
test/types/plugin.test.ts:76
Function
remove
* 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
Function
removeSufix
(name)
test/document.test.js:13652
Function
required
()
test/model.validate.test.js:212
Function
required
()
test/document.test.js:14962
Function
resetId
(v)
lib/schema/objectId.js:297
Function
resizePanel
(event)
docs/js/ask-ai.js:271
Function
reverse
* 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
Function
saveSubdocsPostDeleteOne
()
lib/plugins/saveSubdocs.js:77
Function
saveSubdocsPostSave
()
lib/plugins/saveSubdocs.js:42
Function
saveSubdocsPreDeleteOne
()
lib/plugins/saveSubdocs.js:62
Function
saveSubdocsPreSave
()
lib/plugins/saveSubdocs.js:22
Function
schemaDouble
()
test/types/schema.create.test.ts:1827
Function
schemaDouble
()
test/types/schema.test.ts:1865
Function
schemaInstanceMethodsAndQueryHelpers
()
test/types/models.test.ts:539
Function
schemaInstanceMethodsAndQueryHelpersOnConnection
()
test/types/connection.test.ts:115
Function
schemaMapPropertyReducer
(accum, [path, propertyConfig])
lib/schema.js:1038
Function
set
(i, val, skipModified)
lib/types/documentArray/methods/index.js:443
Function
set
* 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
Function
set
(v)
test/schema.test.js:3106
Function
set
(v)
test/types.map.test.js:646
Function
set
(v)
test/document.test.js:7711
Function
set
()
test/model.discriminator.test.js:2284
Function
set
()
test/types/virtuals.test.ts:115
Function
set
(v)
test/docs/virtuals.test.js:187
Function
setAsObject
()
test/types/base.test.ts:77
Function
setLat
(val)
test/model.test.js:1484
Function
shardingPluginPostInit
()
lib/plugins/sharding.js:19
Function
shardingPluginPostSave
()
lib/plugins/sharding.js:28
Function
shardingPluginPreDeleteOne
()
lib/plugins/sharding.js:32
Function
shardingPluginPreSave
()
lib/plugins/sharding.js:24
Function
shardingPluginPreUpdateOne
()
lib/plugins/sharding.js:36
Function
shift
* 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
Function
shift
* 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
Function
sort
* 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
Function
sort
* 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
Function
splice
* 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
Function
splice
* 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
Function
standardSchemaModelValidate
()
test/types/models.test.ts:52
Function
startResize
(event)
docs/js/ask-ai.js:260
Function
staticFn
()
test/model.test.js:9111
Function
staticFn
()
test/types/schema.create.test.ts:546
Function
staticFn
()
test/types/schema.test.ts:548
Function
stopResize
()
docs/js/ask-ai.js:276
Function
storeShard
()
lib/plugins/sharding.js:69
Function
stringEnumArrayInfer
()
test/types/schema.test.ts:1090
Function
stringEnumInfer
()
test/types/schema.test.ts:1066
Function
success
(doc)
test/model.populate.test.js:1934
Function
t
(locale?: string)
test/types/models.test.ts:132
Function
tAndDocSyntax
()
test/types/models.test.ts:150
Function
test
()
test/types/discriminator.test.ts:28
Function
test
(dbModel: Model<DocT>)
test/types/models.test.ts:749
Function
test
()
test/encryption/encryption.test.js:146
Function
testCombinedFlattenOptions
()
test/types/document.test.ts:800
Function
testFlattenUUIDs
()
test/types/document.test.ts:748
Function
testGenericQuery
()
test/types/queries.test.ts:214
Function
testInferHydratedDocTypeFromSchema
()
test/types/schema.create.test.ts:1914
Function
testInferHydratedDocTypeFromSchema
()
test/types/schema.test.ts:2020
Function
testInferRawDocTypeFromSchema
()
test/types/schema.create.test.ts:1890
Function
testInferRawDocTypeFromSchema
()
test/types/schema.test.ts:1998
Function
testInferTimestamps
()
test/types/schema.create.test.ts:918
Function
testInferTimestamps
()
test/types/schema.test.ts:906
Function
testMethods
()
test/types/document.test.ts:76
Function
testMiddleware
()
test/schema.test.js:2211
Function
testNewSchemaWithMethodsAndVirtuals
()
test/types/schema.test.ts:2111
Function
testObjectIdsInsideMaps
()
test/types/document.test.ts:886
Function
testPathsParam
()
test/types/populate.test.ts:95
Function
testWithLevel1NestedPaths
()
test/types/models.test.ts:1035
Function
thisParameterPattern
()
test/types/loadclass.test.ts:50
Function
timestampsPreSave
()
lib/helpers/timestamps/setupTimestamps.js:89
Function
toBSON
()
lib/types/documentArray/methods/index.js:23
Function
toBSON
()
lib/types/array/methods/index.js:912
Function
toBSON
()
test/types/document.test.ts:597
Function
toBSON
()
test/helpers/clone.test.js:301
Function
toJSON
()
test/helpers/clone.test.js:201
Method
toJSON
* 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
Method
toJSON
* Ensure `name` and `message` show up in toJSON output re: gh-9296 * @api private
lib/error/validator.js:50
Method
toJSONSchema
* Returns this schema type's representation in a JSON schema. * * @param {object} [options] * @param {boolean} [options.useBsonType=false] If
lib/schema/map.js:126
Function
toLower
(email)
test/docs/getters-setters.test.js:146
Function
toObject
* 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
Function
toObject
()
test/helpers/clone.test.js:57
Function
toObjectToJSONTest
()
test/types/loadclass.test.ts:110
Function
toString
()
lib/types/documentArray/methods/index.js:27
Function
toString
()
test/helpers/clone.test.js:190
Method
toString
* Console.log helper
lib/error/validation.js:43
Method
toString
* Console.log helper
lib/error/setOptionError.js:29
Function
toUUID
(string)
test/model.findOneAndUpdate.test.js:1750
Function
toggleTheme
()
docs/js/theme-toggle.js:12
Function
trace
(fn, contextFactory)
lib/tracing.js:23
Function
trackTransactionPreSave
()
lib/plugins/trackTransaction.js:12
Function
transform
(doc, id)
test/model.populate.test.js:9755
← previous
next →
1,301–1,400 of 1,431, ranked by callers