MCPcopy Create free account

hub / github.com/Automattic/mongoose / functions

Functions1,018 in github.com/Automattic/mongoose

↓ 1 callersFunctiontoggleClass
(element, className)
docs/js/mobile-navbar-toggle.js:10
↓ 1 callersFunctiontranslate
(key, value)
lib/model.js:1922
↓ 1 callersFunctionuseChildDoc
(child: Child)
test/types/populate.test.ts:44
↓ 1 callersFunctionuser
(name)
test/model.populate.setting.test.js:112
↓ 1 callersFunctionvalidate
(ok, validatorProperties, scope)
lib/schematype.js:1353
↓ 1 callersFunctionvalidatePath
(path)
lib/document.js:2964
↓ 1 callersFunctionvalidateRef
(ref, path)
lib/helpers/populate/validateRef.js:8
↓ 1 callersFunctionvalidator
()
test/model.test.js:992
↓ 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:251
↓ 1 callersFunctionwait
()
test/docs/asyncIterator.test.js:35
↓ 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:184
↓ 1 callersMethodwhereSomething
(this: TestQuery)
test/types/plugin.test.ts:54
↓ 1 callersMethodwhoAmI
()
test/schema.test.js:2939
↓ 1 callersMethodwhoAmI
()
test/document.test.js:12859
↓ 1 callersFunctionwireup
()
lib/drivers/node-mongodb-native/connection.js:102
↓ 1 callersFunctionwrapMarkdown
(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
FunctionActivityBaseSchema
()
test/model.discriminator.test.js:380
FunctionAggregate
* Aggregate constructor used for building aggregation pipelines. Do not * instantiate this class directly, use [Model.aggregate()](https://mongoosejs
lib/aggregate.js:53
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:36
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:25
FunctionBaseSchema
* Setup
test/model.discriminator.querying.test.js:18
FunctionBaseSchema
()
test/model.discriminator.test.js:252
FunctionBossBaseSchema
()
test/model.discriminator.test.js:102
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:54
FunctionCustomError
()
test/document.test.js:4809
FunctionCustomNumber
(path, options)
test/schematype.test.js:67
FunctionCustomObjectId
(path, options)
test/schematype.test.js:81
FunctionCustomQuery
(criteria, options)
lib/query.js:227
FunctionCustomString
(path, options)
test/schematype.test.js:74
FunctionDecimal128
* Decimal128 SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/decimal128.js:21
FunctionDocument
* Document constructor. * * @param {Object} obj the values to set * @param {Object} schema * @param {Object} [fields] optional object containing t
lib/browserDocument.js:29
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:81
FunctionDocumentArrayElement
* DocumentArrayElement SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/DocumentArrayElement.js:21
FunctionDocumentArrayPath
* SubdocsArray SchemaType constructor * * @param {String} key * @param {Schema} schema * @param {Object} options * @param {Object} schemaOptions
lib/schema/documentarray.js:39
FunctionEmbeddedDocument
()
lib/schema/documentarray.js:126
FunctionFrom
()
test/utils.test.js:238
FunctionInternalCache
()
lib/internal.js:12
FunctionMinionSchema
()
test/model.discriminator.test.js:243
FunctionMixed
* Mixed SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/mixed.js:21
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:117
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/index.js:62
FunctionMongooseBuffer
* Mongoose Buffer constructor. * * Values always have to be passed to the constructor to initialize. * * @param {Buffer} value * @param {String}
lib/types/buffer.js:23
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:31
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:25
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:23
FunctionObjectId
* ObjectId SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/objectid.js:27
FunctionPoint
(key, options)
test/model.query.casting.test.js:531
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:92
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:37
FunctionSchemaArray
* Array SchemaType constructor * * @param {String} key * @param {SchemaType} cast * @param {Object} options * @param {Object} schemaOptions * @i
lib/schema/array.js:41
FunctionSchemaBigInt
* BigInt SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/bigint.js:20
FunctionSchemaBoolean
* Boolean SchemaType constructor. * * @param {String} path * @param {Object} options * @inherits SchemaType * @api public
lib/schema/boolean.js:20
FunctionSchemaBuffer
* Buffer SchemaType constructor * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/buffer.js:25
FunctionSchemaDate
* Date SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/date.js:25
FunctionSchemaNumber
* Number SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/number.js:25
FunctionSchemaString
* String SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public
lib/schema/string.js:25
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 * @inherits SchemaType * @api public
lib/schema/uuid.js:86
FunctionStub
()
test/document.unit.test.js:21
FunctionSubdocument
* Subdocument constructor. * * @inherits Document * @api private
lib/types/subdocument.js:18
FunctionSubdocument
()
test/types.documentarray.test.js:24
FunctionSubdocumentPath
* Single nested subdocument SchemaType constructor. * * @param {Schema} schema * @param {String} path * @param {Object} options * @inherits Schem
lib/schema/SubdocumentPath.js:38
FunctionTest
()
test/schema.test.js:305
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:27
FunctionTestDocument
* Test Document constructor.
test/document.test.js:33
FunctionTo
()
test/utils.test.js:231
FunctionVirtualType
* 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
← previousnext →501–600 of 1,018, ranked by callers