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
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:65
Function
CustomError
()
test/document.test.js:5272
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:292
Function
CustomString
(path, options)
test/schematype.test.js:74
Function
DefinitionTypes
()
test/types/inferrawdoctype.test.ts:112
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:90
Function
EmbeddedDocument
()
lib/schema/documentArray.js:141
Function
From
()
test/utils.test.js:254
Function
HandlesAny
()
test/types/inferrawdoctype.test.ts:152
Function
InternalCache
()
lib/internal.js:12
Function
MinionSchema
()
test/model.discriminator.test.js:266
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:132
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/mongoose.js:61
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:24
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:30
Function
MoreDefinitionTypes
()
test/types/inferrawdoctype.test.ts:133
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:27
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:28
Function
Point
(key, options)
test/model.query.casting.test.js:534
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:116
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:39
Function
Schema
* Schema constructor. * * #### Example: * * const child = new Schema({ name: String }); * const schema = new Schema({ name: String, age:
lib/schema.js:109
Function
SchemaArray
* Array SchemaType constructor * * @param {string} key * @param {SchemaType} cast * @param {object} options * @param {object} schemaOptions * @p
lib/schema/array.js:44
Function
SchemaBigInt
* BigInt SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchem
lib/schema/bigint.js:22
Function
SchemaBoolean
* Boolean SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSche
lib/schema/boolean.js:22
Function
SchemaBuffer
* Buffer SchemaType constructor * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/buffer.js:27
Function
SchemaDate
* Date SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/date.js:27
Function
SchemaDecimal128
* Decimal128 SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSc
lib/schema/decimal128.js:23
Function
SchemaDocumentArray
* SubdocsArray SchemaType constructor * * @param {string} key * @param {Schema} schema * @param {object} options * @param {object} schemaOptions
lib/schema/documentArray.js:42
Function
SchemaDocumentArrayElement
* DocumentArrayElement SchemaType constructor. Mongoose calls this internally when you define a new document array in your schema. * * #### Example:
lib/schema/documentArrayElement.js:27
Function
SchemaDouble
* Double SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchem
lib/schema/double.js:22
Function
SchemaInt32
* Int32 SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/int32.js:23
Function
SchemaMixed
* Mixed SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} _schemaOptions * @param {Schema} parentSchem
lib/schema/mixed.js:23
Function
SchemaNumber
* Number SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/number.js:27
Function
SchemaObjectId
* ObjectId SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSche
lib/schema/objectId.js:29
Function
SchemaString
* String SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/string.js:27
Function
SchemaSubdocument
* Single nested subdocument SchemaType constructor. * * @param {Schema} schema * @param {string} path * @param {object} options * @param {Schema}
lib/schema/subdocument.js:39
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 * @param {object} _schemaOptions * @param {Schema} parentSchem
lib/schema/uuid.js:43
Function
Stub
()
test/document.unit.test.js:21
Function
Subdocument
* Subdocument constructor. * * @inherits Document * @api private
lib/types/subdocument.js:17
Function
Subdocument
()
test/types.documentarray.test.js:24
Function
Test
()
test/schema.test.js:307
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:29
Function
TestDocument
* Test Document constructor.
test/document.test.js:34
Function
Timestamps
()
test/types/inferrawdoctype.test.ts:82
Function
To
()
test/utils.test.js:247
Function
VirtualType
* VirtualType constructor * * This is what mongoose uses to define virtual attributes via `Schema.prototype.virtual`. * * #### Example: * *
lib/virtualType.js:34
Function
_11532
()
test/types/populate.test.ts:227
Function
_11767
()
test/types/lean.test.ts:83
Function
_Dummy
()
test/types.document.test.js:34
Function
_Subdocument
()
test/types.document.test.js:41
Function
_bulkWrite
(ops, options)
lib/model.js:3421
Function
_cast
* Overrides MongooseArray#cast * * @method _cast * @api private * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:59
Function
_cast
* Casts a member based on this arrays schema. * * @param {any} value * @return {any} the casted value * @method _cast * @api private
lib/types/array/methods/index.js:255
Function
_embedded
(value, path, parent)
lib/schema/subdocument.js:76
Function
_execPopulateQuery
(mod, match, select)
lib/model.js:4714
Function
_insertMany
(arr, options)
lib/model.js:3045
Function
_mapCast
* Internal helper for .map() * * @api private * @return {number} * @method _mapCast * @memberOf MongooseArray
lib/types/array/methods/index.js:299
Function
_markModified
(elem, embeddedPath)
lib/types/documentArray/methods/index.js:455
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:315
Function
_native_go
(json)
docs/js/native.js:58
Function
_onNext
(error, doc)
lib/cursor/queryCursor.js:563
Function
_populateBatch
()
lib/cursor/queryCursor.js:590
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:346
Function
_rerunClose
()
lib/connection.js:1290
Function
_setTimestampsOnUpdate
()
lib/helpers/timestamps/setupTimestamps.js:105
Function
_step
()
lib/helpers/cursor/eachAsync.js:208
Function
_transformForAsyncIterator
(doc)
lib/cursor/aggregationCursor.js:415
Method
_update
()
test/types/models.test.ts:336
Function
_validateArgs
(uri, options, callback)
lib/connection.js:1165
Function
a
()
test/model.updateOne.test.js:226
Method
addError
* add message * @param {string} key * @param {string|Error} error * @api private
lib/error/setOptionError.js:47
Method
addListener
(event, handler)
lib/cursor/changeStream.js:177
Function
addSufix
(name)
test/document.test.js:13647
Function
addToSet
* Adds values to the array if not already present. * * #### Example: * * console.log(doc.array) // [2,3,4] * const added = doc.
lib/types/array/methods/index.js:448
Function
aggregateOptionsTest
()
test/types/models.test.ts:701
Function
allowNullFalseInferredTypes
()
test/types/schema.create.test.ts:2039
Function
allowNullFalseInferredTypes
()
test/types/schema.test.ts:2375
Function
applyWhere
()
lib/plugins/sharding.js:44
Function
asyncEnd
(ctx)
test/tracing.test.js:45
Function
asyncStart
(ctx)
test/tracing.test.js:44
Method
autoEncryptionType
()
test/encryptedSchema.test.js:274
Function
autoInferred
()
test/types/schema.test.ts:2054
Function
autoInferred
()
test/types/document.test.ts:675
Function
autoInferredNestedMaps
()
test/types/schema.test.ts:2083
Function
autoInferredWithCustomVersionKey
()
test/types/document.test.ts:710
Function
autoTypedDocument
()
test/types/document.test.ts:188
Function
autoTypedDocumentConnection
()
test/types/document.test.ts:201
Function
autoTypedQuery
()
test/types/queries.test.ts:374
Function
autoTypedSchema
()
test/types/schema.create.test.ts:375
Function
autoTypedVirtuals
()
test/types/virtuals.test.ts:90
Function
bar
(SomeModel: Model<ITest & Document>)
test/types/models.test.ts:164
Method
bar
()
test/model.test.js:9036
Function
baseConnectionAndCollection
()
test/types/base.test.ts:113
← previous
next →
601–700 of 1,431, ranked by callers