MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,431 in github.com/Automattic/mongoose

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:22
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:5272
FunctionCustomNumber
(path, options)
test/schematype.test.js:67
FunctionCustomObjectId
(path, options)
test/schematype.test.js:81
FunctionCustomQuery
(criteria, options)
lib/query.js:292
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 fo
lib/document.js:90
FunctionEmbeddedDocument
()
lib/schema/documentArray.js:141
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:132
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:116
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:39
FunctionSchema
* Schema constructor. * * #### Example: * * const child = new Schema({ name: String }); * const schema = new Schema({ name: String, age:
lib/schema.js:109
FunctionSchemaArray
* Array SchemaType constructor * * @param {string} key * @param {SchemaType} cast * @param {object} options * @param {object} schemaOptions * @p
lib/schema/array.js:44
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:42
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:39
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:34
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: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
Functiona
()
test/model.updateOne.test.js:226
MethodaddError
* add message * @param {string} key * @param {string|Error} error * @api private
lib/error/setOptionError.js:47
MethodaddListener
(event, handler)
lib/cursor/changeStream.js:177
FunctionaddSufix
(name)
test/document.test.js:13647
FunctionaddToSet
* 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
FunctionaggregateOptionsTest
()
test/types/models.test.ts:701
FunctionallowNullFalseInferredTypes
()
test/types/schema.create.test.ts:2039
FunctionallowNullFalseInferredTypes
()
test/types/schema.test.ts:2375
FunctionapplyWhere
()
lib/plugins/sharding.js:44
FunctionasyncEnd
(ctx)
test/tracing.test.js:45
FunctionasyncStart
(ctx)
test/tracing.test.js:44
MethodautoEncryptionType
()
test/encryptedSchema.test.js:274
FunctionautoInferred
()
test/types/schema.test.ts:2054
FunctionautoInferred
()
test/types/document.test.ts:675
FunctionautoInferredNestedMaps
()
test/types/schema.test.ts:2083
FunctionautoInferredWithCustomVersionKey
()
test/types/document.test.ts:710
FunctionautoTypedDocument
()
test/types/document.test.ts:188
FunctionautoTypedDocumentConnection
()
test/types/document.test.ts:201
FunctionautoTypedQuery
()
test/types/queries.test.ts:374
FunctionautoTypedSchema
()
test/types/schema.create.test.ts:375
FunctionautoTypedVirtuals
()
test/types/virtuals.test.ts:90
Functionbar
(SomeModel: Model<ITest & Document>)
test/types/models.test.ts:164
Methodbar
()
test/model.test.js:9036
FunctionbaseConnectionAndCollection
()
test/types/base.test.ts:113
← previousnext →601–700 of 1,431, ranked by callers