MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,512 in github.com/Automattic/mongoose

↓ 1 callersFunctionupdate
()
docs/js/toc.js:50
↓ 1 callersMethodupdateSearchIndex
* 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 callersFunctionuseChildDoc
(child: Child)
test/types/populate.test.ts:44
↓ 1 callersFunctionuser
(name)
test/model.populate.setting.test.js:112
↓ 1 callersFunctionvalidateDiscriminatorSchemasForEncryption
* 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 callersFunctionvalidateRef
(ref, path)
lib/helpers/populate/validateRef.js:8
↓ 1 callersFunctionvalueFilter
* 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 callersFunctionwait
()
test/docs/asyncIterator.test.js:35
↓ 1 callersFunctionwalkSubdocs
(currentSubdoc, indexedPathPrefix, segmentIndex)
lib/helpers/populate/getModelsMapForPopulate.js:384
↓ 1 callersFunctionwalkUpdatePath
* 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 callersMethodwhereSomething
(this: TestQuery)
test/types/plugin.test.ts:54
↓ 1 callersMethodwhoAmI
()
test/schema.test.js:3283
↓ 1 callersMethodwhoAmI
()
test/model.test.js:9436
↓ 1 callersMethodwhoAmI
()
test/document.test.js:13893
↓ 1 callersFunctionwireup
()
lib/drivers/node-mongodb-native/connection.js:111
↓ 1 callersFunctionworker
()
lib/helpers/parallelLimit.js:34
↓ 1 callersFunctionwrapMarkdown
(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
FunctionActivityBaseSchema
()
test/model.discriminator.test.js:440
FunctionAggregate
* Aggregate constructor used for building aggregation pipelines. Do not * instantiate this class directly, use [Model.aggregate()](https://mongoosejs
lib/aggregate.js:57
FunctionAggregationCursor
* 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
FunctionArraySubdocument
* 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
FunctionBaseSchema
* Setup
test/model.discriminator.querying.test.js:18
FunctionBaseSchema
()
test/model.discriminator.test.js:275
FunctionBossBaseSchema
()
test/model.discriminator.test.js:101
FunctionCollection
* 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
FunctionConnection
* Connection constructor * * For practical reasons, a Connection equals a Db. * * @param {Mongoose} base a mongoose instance * @inherits NodeJS E
lib/connection.js:65
FunctionCustomError
()
test/document.test.js:4972
FunctionCustomNumber
(path, options)
test/schematype.test.js:67
FunctionCustomObjectId
(path, options)
test/schematype.test.js:81
FunctionCustomQuery
(criteria, options)
lib/query.js:282
FunctionCustomString
(path, options)
test/schematype.test.js:74
FunctionDefinitionTypes
()
test/types/inferrawdoctype.test.ts:112
FunctionDocument
* 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
FunctionEmbeddedDocument
()
lib/schema/documentArray.js:142
FunctionFrom
()
test/utils.test.js:254
FunctionHandlesAny
()
test/types/inferrawdoctype.test.ts:152
FunctionInternalCache
()
lib/internal.js:12
FunctionMinionSchema
()
test/model.discriminator.test.js:266
FunctionModel
* 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
FunctionMongoose
* 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
FunctionMongooseBuffer
* Mongoose Buffer constructor. * * Values always have to be passed to the constructor to initialize. * * @param {Buffer} value * @param {string}
lib/types/buffer.js:24
FunctionMongooseDocumentArray
* 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
FunctionMoreDefinitionTypes
()
test/types/inferrawdoctype.test.ts:133
FunctionNativeCollection
* 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
FunctionNativeConnection
* 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
FunctionPoint
(key, options)
test/model.query.casting.test.js:534
FunctionQuery
* 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
FunctionQueryCursor
* 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
FunctionSchema
* Schema constructor. * * #### Example: * * const child = new Schema({ name: String }); * const schema = new Schema({ name: String, age:
lib/schema.js:110
FunctionSchemaArray
* Array SchemaType constructor * * @param {string} key * @param {SchemaType} cast * @param {object} options * @param {object} schemaOptions * @p
lib/schema/array.js:45
FunctionSchemaBigInt
* BigInt SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchem
lib/schema/bigint.js:22
FunctionSchemaBoolean
* Boolean SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSche
lib/schema/boolean.js:22
FunctionSchemaBuffer
* Buffer SchemaType constructor * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/buffer.js:27
FunctionSchemaDate
* Date SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/date.js:27
FunctionSchemaDecimal128
* Decimal128 SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSc
lib/schema/decimal128.js:23
FunctionSchemaDocumentArray
* SubdocsArray SchemaType constructor * * @param {string} key * @param {Schema} schema * @param {object} options * @param {object} schemaOptions
lib/schema/documentArray.js:44
FunctionSchemaDocumentArrayElement
* DocumentArrayElement SchemaType constructor. Mongoose calls this internally when you define a new document array in your schema. * * #### Example:
lib/schema/documentArrayElement.js:27
FunctionSchemaDouble
* Double SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchem
lib/schema/double.js:22
FunctionSchemaInt32
* Int32 SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/int32.js:23
FunctionSchemaMixed
* Mixed SchemaType constructor. * * @param {string} path * @param {object} options * @param {object} _schemaOptions * @param {Schema} parentSchem
lib/schema/mixed.js:23
FunctionSchemaNumber
* Number SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/number.js:27
FunctionSchemaObjectId
* ObjectId SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSche
lib/schema/objectId.js:29
FunctionSchemaString
* String SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema
lib/schema/string.js:27
FunctionSchemaSubdocument
* Single nested subdocument SchemaType constructor. * * @param {Schema} schema * @param {string} path * @param {object} options * @param {Schema}
lib/schema/subdocument.js:40
FunctionSchemaType
* SchemaType constructor. Do **not** instantiate `SchemaType` directly. * Mongoose converts your schema paths into SchemaTypes automatically. * * #
lib/schemaType.js:43
FunctionSchemaUUID
* UUIDv1 SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} _schemaOptions * @param {Schema} parentSchem
lib/schema/uuid.js:43
FunctionStub
()
test/document.unit.test.js:21
FunctionSubdocument
* Subdocument constructor. * * @inherits Document * @api private
lib/types/subdocument.js:17
FunctionSubdocument
()
test/types.documentarray.test.js:24
FunctionTest
()
test/schema.test.js:307
FunctionTestDocument
* Test Document constructor.
test/document.isselected.test.js:22
FunctionTestDocument
* Test Document constructor.
test/document.populate.test.js:25
FunctionTestDocument
* Test Document constructor.
test/schema.test.js:29
FunctionTestDocument
* Test Document constructor.
test/document.test.js:31
FunctionTimestamps
()
test/types/inferrawdoctype.test.ts:82
FunctionTo
()
test/utils.test.js:247
FunctionVirtualType
* 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
← previousnext →601–700 of 1,512, ranked by callers