Skip to content

docs(mongoose): document the mongoose.mongo property (#16710) - #16712

Merged
vkarpov15 merged 1 commit into
Automattic:9.13from
VaibhavBajpaij:docs/document-mongoose-mongo-property
Nov 18, 2026
Merged

vkarpov15 merged 1 commit into
Automattic:9.13from
VaibhavBajpaij:docs/document-mongoose-mongo-property

Conversation

@VaibhavBajpaij

Copy link
Copy Markdown
Contributor

Summary

Fixes #16710.

Documents the mongoose.mongo property on Mongoose.prototype with JSDoc comments in lib/mongoose.js and lib/index.js so it is parsed into the official Mongoose API reference documentation (as it was prior to #13905), and adds a TypeScript type assertion test in test/types/mongo.test.ts.

Examples

const mongoose = require('mongoose');

// Access the underlying node-mongodb-native driver
console.log(mongoose.mongo);
const m = new mongoose.Mongoose();
console.log(m.mongo);

Add JSDoc documentation for the public mongoose.mongo property on Mongoose prototype and add TypeScript assertion test.

Fixes Automattic#16710

Signed-off-by: Vaibhav Bajpai <bajpaivaibhav2005@gmail.com>
@vkarpov15 vkarpov15 added this to the 9.13 milestone Nov 18, 2026
@vkarpov15
vkarpov15 changed the base branch from master to 9.13 November 18, 2026 20:55

@vkarpov15 vkarpov15 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, merging into 9.13 branch for next minor release.

@vkarpov15
vkarpov15 merged commit dcc9480 into Automattic:9.13 Nov 18, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the mongoose.mongo property (again)

2 participants