Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ functions
Functions
1,018 in github.com/Automattic/mongoose
⨍
Functions
1,018
◇
Types & classes
646
↓ 1 callers
Function
cloneRegExp
(regexp)
lib/helpers/clone.js:173
↓ 1 callers
Function
close
()
test/connection.test.js:590
↓ 1 callers
Function
closeDB
()
benchmarks/benchjs/population.js:295
↓ 1 callers
Function
closeDB
()
benchmarks/benchjs/multiop.js:179
↓ 1 callers
Function
closeDB
()
benchmarks/benchjs/delete.js:72
↓ 1 callers
Function
closeDB
()
benchmarks/benchjs/read.js:172
↓ 1 callers
Function
closeDB
()
benchmarks/benchjs/insert.js:111
↓ 1 callers
Function
collectIndexes
(schema, prefix, baseSchema)
lib/helpers/schema/getIndexes.js:23
↓ 1 callers
Function
complete
()
lib/document.js:3028
↓ 1 callers
Function
completeMany
* Given a model and an array of docs, hydrates all the docs to be instances * of the model. Used to initialize docs returned from the db from `find()
lib/helpers/query/completeMany.js:22
↓ 1 callers
Function
completeOne
* hydrates a document * * @param {Model} model * @param {Document} doc * @param {Object} res 3rd parameter to callback * @param {Object} fields
lib/query.js:3136
↓ 1 callers
Function
cont
()
benchmarks/benchjs/population.js:217
↓ 1 callers
Function
convertNewToReturnDocument
* Support the `new` option as an alternative to `returnOriginal` for backwards * compat. * @api private
lib/query.js:3714
↓ 1 callers
Function
convertTypesToString
(types)
docs/source/api.js:210
↓ 1 callers
Function
copyAllRequiredFiles
Copy all static files when versionedDeploy is used
scripts/website.js:556
↓ 1 callers
Function
create
()
lib/model.js:1776
↓ 1 callers
Function
createData
* Data generation
examples/population/population-plain-objects.js:51
↓ 1 callers
Function
createData
* Data generation
examples/population/population-basic.js:51
↓ 1 callers
Function
createData
* Data generation
examples/population/population-of-existing-doc.js:51
↓ 1 callers
Function
createData
* Data generation
examples/population/population-options.js:51
↓ 1 callers
Function
createData
* Data generation
examples/population/population-of-multiple-existing-docs.js:51
↓ 1 callers
Function
createFetch
()
lib/helpers/cursor/eachAsync.js:75
↓ 1 callers
Function
createImmutableSetter
(path, immutable)
lib/helpers/schematype/handleImmutable.js:21
↓ 1 callers
Function
createLogicalQueryOperatorHandler
(op)
lib/schema/array.js:640
↓ 1 callers
Function
createMapNestedSchemaType
(schema, schemaType, path, obj, options)
lib/schema.js:1481
↓ 1 callers
Function
createTestContext
()
test/model.updateOne.test.js:2833
↓ 1 callers
Function
createWithAggregateErrors
()
test/types/create.test.ts:135
↓ 1 callers
Function
cycle
()
benchmarks/mem.js:120
↓ 1 callers
Function
decideModelByObject
* gets discriminator model if discriminator key is present in object * @api private
lib/helpers/model/castBulkWrite.js:277
↓ 1 callers
Function
decrypt
(doc, path)
test/document.test.js:9263
↓ 1 callers
Function
defaultIndexOptsToFalse
(opts)
lib/helpers/processConnectionOptions.js:49
↓ 1 callers
Function
delay
(ms)
test/model.updateOne.test.js:3223
↓ 1 callers
Function
delay
(ms)
test/timestamps.test.js:1048
↓ 1 callers
Function
delay
(ms)
test/model.test.js:7495
↓ 1 callers
Function
delay
(ms)
test/query.cursor.test.js:905
↓ 1 callers
Function
deleteAllHtmlFiles
()
scripts/website.js:96
↓ 1 callers
Function
doExit
(code)
test/deno.js:37
↓ 1 callers
Method
doSomething
(this: TestDocument)
test/types/plugin.test.ts:46
↓ 1 callers
Function
docReducer
(doc, seed, path)
lib/document.js:3629
↓ 1 callers
Function
docs
(arr)
test/types.array.test.js:1753
↓ 1 callers
Function
done
* Clean up
examples/doc-methods.js:73
↓ 1 callers
Function
done
(err)
examples/population/population-across-three-collections.js:130
↓ 1 callers
Function
done
()
benchmarks/mem.js:104
↓ 1 callers
Function
doneWrapper
(err)
test/schema.validation.test.js:428
↓ 1 callers
Function
encrypt
(doc, path, value)
test/document.test.js:9258
↓ 1 callers
Function
example
* Use case
examples/doc-methods.js:60
↓ 1 callers
Function
example
* Population
examples/population/population-plain-objects.js:81
↓ 1 callers
Function
example
* Population
examples/population/population-basic.js:79
↓ 1 callers
Function
example
* Population
examples/population/population-of-existing-doc.js:79
↓ 1 callers
Function
example
* Population
examples/population/population-options.js:103
↓ 1 callers
Function
example
* Population
examples/population/population-of-multiple-existing-docs.js:92
↓ 1 callers
Function
extractTextUrlFromTag
* Extract the Text and Url from a description if any * @param {Tag} tag The tag to process the resulting object from * @param {PropContext} ctx The
docs/source/api.js:459
↓ 1 callers
Function
fetch
(done)
lib/helpers/cursor/eachAsync.js:81
↓ 1 callers
Function
filter
()
test/query.test.js:724
↓ 1 callers
Method
findByFullName
(name)
test/docs/schemas.test.js:53
↓ 1 callers
Method
findByName
(name: string)
test/types/connection.test.ts:114
↓ 1 callers
Method
findOne
( filter: FilterQuery<Blog>, projection: Projection, options: Options )
test/types/queries.test.ts:454
↓ 1 callers
Method
findSomething
(this: TestModel)
test/types/plugin.test.ts:49
↓ 1 callers
Function
fixNoAsyncFn
()
docs/js/convert-old-anchorid.js:73
↓ 1 callers
Function
fixSubIndexPaths
* Checks for indexes added to subdocs using Schema.index(). * These indexes need their paths prefixed properly. * * schema._indexes = [ [inde
lib/helpers/schema/getIndexes.js:143
↓ 1 callers
Function
flatten
(update, path, options, schema)
lib/helpers/common.js:20
↓ 1 callers
Function
foo
(model: Model<User, {}, {}, {}>)
test/types/models.test.ts:138
↓ 1 callers
Method
foo
()
test/model.test.js:7339
↓ 1 callers
Function
formatDate
(x, key, shell)
lib/drivers/node-mongodb-native/collection.js:364
↓ 1 callers
Function
formatMessage
* Formats error messages * @api private
lib/error/validator.js:79
↓ 1 callers
Function
formatObjectId
(x, key)
lib/drivers/node-mongodb-native/collection.js:361
↓ 1 callers
Method
fullName
()
test/types/document.test.ts:77
↓ 1 callers
Function
gatherChildSchemas
(schema)
lib/schema.js:1187
↓ 1 callers
Function
generateRandomCollectionName
()
test/model.test.js:7503
↓ 1 callers
Function
generateVersionError
(doc, modifiedPaths)
lib/model.js:454
↓ 1 callers
Function
get
()
test/docs/virtuals.test.js:186
↓ 1 callers
Method
getAnswer
()
test/types/methods.test.ts:8
↓ 1 callers
Function
getCurrentVersion
* Try to get the current version on the checked-out branch * @returns {Version}
scripts/website.js:250
↓ 1 callers
Function
getIndexesToCreate
(schema, schemaIndexes, dbIndexes, toDrop)
lib/model.js:1538
↓ 1 callers
Function
getIndexesToDrop
(schema, schemaIndexes, dbIndexes)
lib/model.js:1567
↓ 1 callers
Function
getLatestVersionOf
* Get the latest version for the provided major version * @param {number} version major version to search for * @returns {Version}
scripts/website.js:234
↓ 1 callers
Function
getMapPath
(schema, path)
lib/schema.js:1233
↓ 1 callers
Function
getNextbdId
()
benchmarks/benchjs/multiop.js:174
↓ 1 callers
Function
getNextbdId
()
benchmarks/benchjs/read.js:167
↓ 1 callers
Function
getNextbmId
()
benchmarks/benchjs/multiop.js:169
↓ 1 callers
Function
getNextbmId
()
benchmarks/benchjs/read.js:162
↓ 1 callers
Function
getNextcId
()
benchmarks/benchjs/population.js:285
↓ 1 callers
Function
getNextdId
(i)
benchmarks/benchjs/population.js:290
↓ 1 callers
Function
getNextdId
()
benchmarks/benchjs/multiop.js:164
↓ 1 callers
Function
getNextdId
()
benchmarks/benchjs/read.js:157
↓ 1 callers
Function
getNextmId
()
benchmarks/benchjs/multiop.js:159
↓ 1 callers
Function
getNextmId
()
benchmarks/benchjs/read.js:152
↓ 1 callers
Function
getOwnPropertyDescriptors
(object)
lib/helpers/document/compile.js:213
↓ 1 callers
Function
getPartialFilterExpression
(index, indexesType)
lib/helpers/indexes/getRelatedIndexes.js:53
↓ 1 callers
Function
getPaymentModel
()
test/model.updateOne.test.js:3103
↓ 1 callers
Function
getPaymentWithDotSeparatedPaths
()
test/model.updateOne.test.js:3126
↓ 1 callers
Function
getPositionalPath
(self, path, cleanPath)
lib/schema.js:1753
↓ 1 callers
Function
getProperty
(obj, prop)
lib/helpers/get.js:57
↓ 1 callers
Function
getStrictQuery
(queryOptions, schemaUserProvidedOptions, schemaOptions, context)
lib/cast.js:425
↓ 1 callers
Method
getString
()
test/model.discriminator.test.js:1363
↓ 1 callers
Function
getTeacherPosts
(id, skip)
test/model.populate.test.js:6212
↓ 1 callers
Function
getTestRouteData
()
test/types/docArray.test.ts:63
↓ 1 callers
Function
getTests
* Load all test file contents with acquit * @returns {Object[]} acquit ast array
scripts/website.js:74
↓ 1 callers
Function
getUri
(default_uri, db)
test/common.js:92
↓ 1 callers
Function
getUriReadPreference
(connectionString)
lib/helpers/processConnectionOptions.js:43
← previous
next →
301–400 of 1,018, ranked by callers