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
↓ 1 callers
Function
update
()
docs/js/toc.js:50
↓ 1 callers
Method
updateSearchIndex
* Update an existing [Atlas search index](https://www.mongodb.com/docs/atlas/atlas-search/create-index/). * This function only works when connect
types/models.d.ts:757
↓ 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
validateDiscriminatorSchemasForEncryption
* Validate fields declared on the child schema when either schema is configured for encryption. Specifically, this function ensures that: * * - any
lib/helpers/model/discriminator.js:30
↓ 1 callers
Function
validateRef
(ref, path)
lib/helpers/populate/validateRef.js:8
↓ 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:267
↓ 1 callers
Function
wait
()
test/docs/asyncIterator.test.js:35
↓ 1 callers
Function
walkSubdocs
(currentSubdoc, indexedPathPrefix, segmentIndex)
lib/helpers/populate/getModelsMapForPopulate.js:384
↓ 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:222
↓ 1 callers
Method
whereSomething
(this: TestQuery)
test/types/plugin.test.ts:54
↓ 1 callers
Method
whoAmI
()
test/schema.test.js:3283
↓ 1 callers
Method
whoAmI
()
test/model.test.js:9436
↓ 1 callers
Method
whoAmI
()
test/document.test.js:13893
↓ 1 callers
Function
wireup
()
lib/drivers/node-mongodb-native/connection.js:111
↓ 1 callers
Function
worker
()
lib/helpers/parallelLimit.js:34
↓ 1 callers
Function
wrapMarkdown
(md, baseLayout, versionedPath, markdownUrl)
scripts/website.js:351
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:41
Function
$atomics
()
lib/types/array/methods/index.js:114
Function
$parent
()
lib/types/array/methods/index.js:122
Function
$path
()
lib/types/array/methods/index.js:130
Function
$pop
()
lib/types/documentArray/methods/index.js:275
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:225
Function
$schema
()
lib/types/array/methods/index.js:242
Function
$schemaType
()
lib/types/documentArray/methods/index.js:48
Function
$schemaType
()
lib/types/array/methods/index.js:137
Function
$shift
()
lib/types/documentArray/methods/index.js:319
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:175
Function
$toObject
()
lib/types/documentArray/methods/index.js:213
Function
$toObject
()
lib/types/array/methods/index.js:952
Function
ActivityBaseSchema
()
test/model.discriminator.test.js:440
Function
Aggregate
* Aggregate constructor used for building aggregation pipelines. Do not * instantiate this class directly, use [Model.aggregate()](https://mongoosejs
lib/aggregate.js:57
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:40
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:26
Function
BaseSchema
* Setup
test/model.discriminator.querying.test.js:18
Function
BaseSchema
()
test/model.discriminator.test.js:275
Function
BossBaseSchema
()
test/model.discriminator.test.js:101
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:21
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:4972
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:282
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
lib/document.js:91
Function
EmbeddedDocument
()
lib/schema/documentArray.js:142
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:134
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:117
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:42
Function
Schema
* Schema constructor. * * #### Example: * * const child = new Schema({ name: String }); * const schema = new Schema({ name: String, age:
lib/schema.js:110
Function
SchemaArray
* Array SchemaType constructor * * @param {string} key * @param {SchemaType} cast * @param {object} options * @param {object} schemaOptions * @p
lib/schema/array.js:45
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:44
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:40
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:31
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:3488
Function
_cast
* Overrides MongooseArray#cast * * @method _cast * @api private * @memberOf MongooseDocumentArray
lib/types/documentArray/methods/index.js:60
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:256
Function
_embedded
(value, path, parent)
lib/schema/subdocument.js:77
Function
_execPopulateQuery
(mod, match, select)
lib/model.js:4809
Function
_insertMany
(arr, options)
lib/model.js:3090
← previous
next →
601–700 of 1,512, ranked by callers