Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,512 in github.com/Automattic/mongoose
⨍
Functions
1,512
◇
Types & classes
795
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:306
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:849
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:366
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:870
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:333
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:890
Function
standardSchemaModelValidate
()
test/types/models.test.ts:56
Function
startResize
(event)
docs/js/ask-ai.js:287
Function
staticFn
()
test/model.test.js:9314
Function
staticFn
()
test/types/schema.create.test.ts:546
Function
staticFn
()
test/types/schema.test.ts:547
Function
staticReturnsSchemaWithStaticAdded
()
test/types/schema.test.ts:2409
Function
stopResize
()
docs/js/ask-ai.js:303
Function
storeShard
()
lib/plugins/sharding.js:69
Function
stringEnumArrayInfer
()
test/types/schema.test.ts:1089
Function
stringEnumInfer
()
test/types/schema.test.ts:1065
Function
success
(doc)
test/model.populate.test.js:1949
Function
t
(locale?: string)
test/types/models.test.ts:136
Function
tAndDocSyntax
()
test/types/models.test.ts:154
Function
test
()
test/types/discriminator.test.ts:28
Function
test
(dbModel: Model<DocT>)
test/types/models.test.ts:753
Function
test
()
test/encryption/encryption.test.js:146
Function
testCombinedFlattenOptions
()
test/types/document.test.ts:876
Function
testFind
()
test/types/models.test.ts:802
Function
testFindById
()
test/types/models.test.ts:819
Function
testFindByIdAndDelete
()
test/types/models.test.ts:859
Function
testFindByIdAndUpdate
()
test/types/models.test.ts:835
Function
testFindOne
()
test/types/models.test.ts:811
Function
testFindOneAndDelete
()
test/types/models.test.ts:851
Function
testFindOneAndReplace
()
test/types/models.test.ts:843
Function
testFindOneAndUpdate
()
test/types/models.test.ts:827
Function
testFlattenUUIDs
()
test/types/document.test.ts:824
Function
testGenericQuery
()
test/types/queries.test.ts:447
Function
testInferHydratedDocTypeFromSchema
()
test/types/schema.create.test.ts:1914
Function
testInferHydratedDocTypeFromSchema
()
test/types/schema.test.ts:2019
Function
testInferRawDocTypeFromSchema
()
test/types/schema.create.test.ts:1890
Function
testInferRawDocTypeFromSchema
()
test/types/schema.test.ts:1997
Function
testInferTimestamps
()
test/types/schema.create.test.ts:918
Function
testInferTimestamps
()
test/types/schema.test.ts:905
Function
testMethods
()
test/types/document.test.ts:76
Function
testMiddleware
()
test/schema.test.js:2327
Function
testNewSchemaWithMethodsAndVirtuals
()
test/types/schema.test.ts:2110
Function
testObjectIdsInsideMaps
()
test/types/document.test.ts:962
Function
testPathsParam
()
test/types/populate.test.ts:95
Function
testWithLevel1NestedPaths
()
test/types/models.test.ts:1130
Function
thisParameterPattern
()
test/types/loadclass.test.ts:50
Function
timestampsPreSave
()
lib/helpers/timestamps/setupTimestamps.js:89
Function
toBSON
()
lib/types/documentArray/methods/index.js:24
Function
toBSON
()
lib/types/array/methods/index.js:921
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:281
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:112
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:199
Function
toObject
()
test/helpers/clone.test.js:57
Function
toObjectToJSONTest
()
test/types/loadclass.test.ts:110
Function
toString
()
lib/types/documentArray/methods/index.js:28
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
toUpperCase
test/schema.test.js:4675
Function
toggleTheme
()
docs/js/theme-toggle.js:12
Function
trace
(fn, contextFactory)
lib/tracing.js:23
Function
trackTransactionPreDeleteOne
()
lib/plugins/trackTransaction.js:17
Function
trackTransactionPreSave
()
lib/plugins/trackTransaction.js:13
Function
transform
(doc, id)
test/model.populate.test.js:9904
Function
transform
(doc: unknown, ret: InferSchemaType<typeof TestSchema>)
test/types/schema.test.ts:1937
Function
unshift
* Wraps [`Array#unshift`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift) * with proper change trac
lib/types/documentArray/methods/index.js:381
Function
unshift
* Wraps [`Array#unshift`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift) with proper change tracking. * * #
lib/types/array/methods/index.js:967
Function
uptick
()
test/model.test.js:1490
Function
valid
(v)
test/types.buffer.test.js:15
Function
validate
()
test/schema.validation.test.js:640
Function
validate
()
test/document.validate.test.js:175
Function
validate
(v)
test/types.documentarray.test.js:494
Function
validate
(v)
test/document.test.js:8395
Function
validateDoc
(doc, index)
lib/model.js:3122
Function
validator
(value)
test/schema.validation.test.js:506
Function
validator
()
test/model.test.js:994
Function
validator
()
test/document.validate.test.js:32
Function
validator
()
test/document.test.js:3873
Function
validator
(v: any)
test/types/schema.create.test.ts:1584
Function
validator
(v: any)
test/types/schema.test.ts:1641
Function
validator
(value)
test/docs/validation.test.js:302
Function
validatorMessageFunctions
()
test/types/schemaTypeOptions.test.ts:37
Function
valueOf
()
test/helpers/clone.test.js:304
Function
whereFunc
()
test/helpers/query.sanitizeFilter.test.js:79
Method
whoAmI
()
test/schema.test.js:3292
Method
whoAmI
()
test/schema.test.js:3299
Method
whoAmI
()
test/model.test.js:9431
Method
whoAmI
()
test/model.test.js:9448
Method
whoAmI
()
test/document.test.js:13662
Method
whoAmI
()
test/document.test.js:13671
Method
whoAmI
()
test/document.test.js:13678
Method
whoAmI
()
test/document.test.js:13692
Method
whoAmI
()
test/document.test.js:13911
← previous
next →
1,401–1,500 of 1,512, ranked by callers