Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,018 in github.com/Automattic/mongoose
⨍
Functions
1,018
◇
Types & classes
646
↓ 1 callers
Function
toggleClass
(element, className)
docs/js/mobile-navbar-toggle.js:10
↓ 1 callers
Function
translate
(key, value)
lib/model.js:1922
↓ 1 callers
Function
useChildDoc
(child: Child)
test/types/populate.test.ts:44
↓ 1 callers
Function
user
(name)
test/model.populate.setting.test.js:112
↓ 1 callers
Function
validate
(ok, validatorProperties, scope)
lib/schematype.js:1353
↓ 1 callers
Function
validatePath
(path)
lib/document.js:2964
↓ 1 callers
Function
validateRef
(ref, path)
lib/helpers/populate/validateRef.js:8
↓ 1 callers
Function
validator
()
test/model.test.js:992
↓ 1 callers
Function
valueFilter
* 1) Apply backwards compatible find/findOne behavior to sub documents * * find logic: * a) filter out non-documents * b) remove _id
lib/helpers/populate/assignVals.js:251
↓ 1 callers
Function
wait
()
test/docs/asyncIterator.test.js:35
↓ 1 callers
Function
walkUpdatePath
* Walk each path of obj and cast its values * according to its schema. * * @param {Schema} schema * @param {Object} obj part of a query * @param
lib/helpers/query/castUpdate.js:184
↓ 1 callers
Method
whereSomething
(this: TestQuery)
test/types/plugin.test.ts:54
↓ 1 callers
Method
whoAmI
()
test/schema.test.js:2939
↓ 1 callers
Method
whoAmI
()
test/document.test.js:12859
↓ 1 callers
Function
wireup
()
lib/drivers/node-mongodb-native/connection.js:102
↓ 1 callers
Function
wrapMarkdown
(md, baseLayout, versionedPath)
scripts/website.js:310
Function
$__getAtomics
* Depopulates stored atomic operation values as necessary for direct insertion to MongoDB. * * If no atomics exist, we return all array values a
lib/types/array/methods/index.js:39
Function
$atomics
()
lib/types/array/methods/index.js:82
Function
$parent
()
lib/types/array/methods/index.js:90
Function
$path
()
lib/types/array/methods/index.js:98
Function
$pop
* Pops the array atomically at most one time per document `save()`. * * #### NOTE: * * _Calling this multiple times on an array before sav
lib/types/array/methods/index.js:186
Function
$schema
()
lib/types/array/methods/index.js:203
Function
$shift
* Atomically shifts the array at most one time per document `save()`. * * #### Note: * * _Calling this multiple times on an array before s
lib/types/array/methods/index.js:136
Function
$toObject
()
lib/types/DocumentArray/methods/index.js:177
Function
$toObject
()
lib/types/array/methods/index.js:903
Function
ActivityBaseSchema
()
test/model.discriminator.test.js:380
Function
Aggregate
* Aggregate constructor used for building aggregation pipelines. Do not * instantiate this class directly, use [Model.aggregate()](https://mongoosejs
lib/aggregate.js:53
Function
AggregationCursor
* An AggregationCursor is a concurrency primitive for processing aggregation * results one document at a time. It is analogous to QueryCursor. * *
lib/cursor/AggregationCursor.js:36
Function
ArraySubdocument
* A constructor. * * @param {Object} obj js object returned from the db * @param {MongooseDocumentArray} parentArr the parent array of this documen
lib/types/ArraySubdocument.js:25
Function
BaseSchema
* Setup
test/model.discriminator.querying.test.js:18
Function
BaseSchema
()
test/model.discriminator.test.js:252
Function
BossBaseSchema
()
test/model.discriminator.test.js:102
Function
Collection
* Abstract Collection constructor * * This is the base class that drivers inherit from and implement. * * @param {String} name name of the collect
lib/collection.js:22
Function
Connection
* Connection constructor * * For practical reasons, a Connection equals a Db. * * @param {Mongoose} base a mongoose instance * @inherits NodeJS E
lib/connection.js:54
Function
CustomError
()
test/document.test.js:4809
Function
CustomNumber
(path, options)
test/schematype.test.js:67
Function
CustomObjectId
(path, options)
test/schematype.test.js:81
Function
CustomQuery
(criteria, options)
lib/query.js:227
Function
CustomString
(path, options)
test/schematype.test.js:74
Function
Decimal128
* Decimal128 SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/decimal128.js:21
Function
Document
* Document constructor. * * @param {Object} obj the values to set * @param {Object} schema * @param {Object} [fields] optional object containing t
lib/browserDocument.js:29
Function
Document
* The core Mongoose document constructor. You should not call this directly, * the Mongoose [Model constructor](./api/model.html#Model) calls this fo
lib/document.js:81
Function
DocumentArrayElement
* DocumentArrayElement SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/DocumentArrayElement.js:21
Function
DocumentArrayPath
* SubdocsArray SchemaType constructor * * @param {String} key * @param {Schema} schema * @param {Object} options * @param {Object} schemaOptions
lib/schema/documentarray.js:39
Function
EmbeddedDocument
()
lib/schema/documentarray.js:126
Function
From
()
test/utils.test.js:238
Function
InternalCache
()
lib/internal.js:12
Function
MinionSchema
()
test/model.discriminator.test.js:243
Function
Mixed
* Mixed SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/mixed.js:21
Function
Model
* A Model is a class that's your primary tool for interacting with MongoDB. * An instance of a Model is called a [Document](https://mongoosejs.com/do
lib/model.js:117
Function
Mongoose
* Mongoose constructor. * * The exports object of the `mongoose` module is an instance of this class. * Most apps will only use this one instance.
lib/index.js:62
Function
MongooseBuffer
* Mongoose Buffer constructor. * * Values always have to be passed to the constructor to initialize. * * @param {Buffer} value * @param {String}
lib/types/buffer.js:23
Function
MongooseDocumentArray
* DocumentArray constructor * * @param {Array} values * @param {String} path the path to this array * @param {Document} doc parent document * @ap
lib/types/DocumentArray/index.js:31
Function
NativeCollection
* A [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) collection implementation. * * All methods methods from the [node-mongodb-
lib/drivers/node-mongodb-native/collection.js:25
Function
NativeConnection
* A [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) connection implementation. * * @inherits Connection * @api private
lib/drivers/node-mongodb-native/connection.js:23
Function
ObjectId
* ObjectId SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/objectid.js:27
Function
Point
(key, options)
test/model.query.casting.test.js:531
Function
Query
* Query constructor used for building queries. You do not need * to instantiate a `Query` directly. Instead use Model functions like * [`Model.find(
lib/query.js:92
Function
QueryCursor
* A QueryCursor is a concurrency primitive for processing query results * one document at a time. A QueryCursor fulfills the Node.js streams3 API, *
lib/cursor/QueryCursor.js:37
Function
SchemaArray
* Array SchemaType constructor * * @param {String} key * @param {SchemaType} cast * @param {Object} options * @param {Object} schemaOptions * @i
lib/schema/array.js:41
Function
SchemaBigInt
* BigInt SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/bigint.js:20
Function
SchemaBoolean
* Boolean SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/boolean.js:20
Function
SchemaBuffer
* Buffer SchemaType constructor * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/buffer.js:25
Function
SchemaDate
* Date SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/date.js:25
Function
SchemaNumber
* Number SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/number.js:25
Function
SchemaString
* String SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/string.js:25
Function
SchemaType
* SchemaType constructor. Do **not** instantiate `SchemaType` directly. * Mongoose converts your schema paths into SchemaTypes automatically. * * #
lib/schematype.js:43
Function
SchemaUUID
* UUIDv1 SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/uuid.js:86
Function
Stub
()
test/document.unit.test.js:21
Function
Subdocument
* Subdocument constructor. * * @inherits Document * @api private
lib/types/subdocument.js:18
Function
Subdocument
()
test/types.documentarray.test.js:24
Function
SubdocumentPath
* Single nested subdocument SchemaType constructor. * * @param {Schema} schema * @param {String} path * @param {Object} options * @inherits Schem
lib/schema/SubdocumentPath.js:38
Function
Test
()
test/schema.test.js:305
Function
TestDocument
* Test Document constructor.
test/document.isselected.test.js:22
Function
TestDocument
* Test Document constructor.
test/document.populate.test.js:25
Function
TestDocument
* Test Document constructor.
test/schema.test.js:27
Function
TestDocument
* Test Document constructor.
test/document.test.js:33
Function
To
()
test/utils.test.js:231
Function
VirtualType
* VirtualType constructor * * This is what mongoose uses to define virtual attributes via `Schema.prototype.virtual`. * * #### Example: * *
lib/virtualtype.js:31
Function
_11532
()
test/types/populate.test.ts:225
Function
_11767
()
test/types/lean.test.ts:84
Function
_Dummy
()
test/types.document.test.js:32
Function
_Subdocument
()
test/types.document.test.js:39
Function
_cast
* Overrides MongooseArray#cast * * @method _cast * @api private * @memberOf MongooseDocumentArray
lib/types/DocumentArray/methods/index.js:41
Function
_cast
* Casts a member based on this arrays schema. * * @param {any} value * @return value the casted value * @method _cast * @api private
lib/types/array/methods/index.js:217
Function
_embedded
(value, path, parent)
lib/schema/SubdocumentPath.js:76
Function
_execPopulateQuery
(mod, match, select, assignmentOpts, callback)
lib/model.js:4531
Function
_mapCast
* Internal helper for .map() * * @api private * @return {Number} * @method _mapCast * @memberOf MongooseArray
lib/types/array/methods/index.js:262
Function
_markModified
(elem, embeddedPath)
lib/types/DocumentArray/methods/index.js:329
Function
_markModified
* Marks this array as modified. * * If it bubbles up from an embedded document change, then it takes the following arguments (otherwise, takes 0
lib/types/array/methods/index.js:278
Function
_native_go
(json)
docs/js/native.js:58
Function
_next
(err, valsFromDb)
lib/model.js:4488
Function
_onNext
(error, doc)
lib/cursor/QueryCursor.js:488
Function
_populateBatch
()
lib/cursor/QueryCursor.js:521
Method
_queue
(cb)
lib/cursor/ChangeStream.js:137
Function
_registerAtomic
* Register an atomic operation with the parent. * * @param {Array} op operation * @param {any} val * @method _registerAtomic * @api pri
lib/types/array/methods/index.js:309
Function
_rerunClose
()
lib/connection.js:916
Function
_setTimestampsOnUpdate
(next)
lib/helpers/timestamps/setupTimestamps.js:91
Function
_step
()
lib/helpers/cursor/eachAsync.js:208
Function
_transformForAsyncIterator
(doc)
lib/cursor/QueryCursor.js:386
← previous
next →
501–600 of 1,018, ranked by callers