[PR #4568] [MERGED] docs: fix mongodb example #31053

Closed
opened 2026-04-17 21:59:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4568
Author: @himself65
Created: 9/10/2025
Status: Merged
Merged: 9/10/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/09/10/db-trx


📝 Commits (3)

  • 9846ecb docs: fix mongodb example
  • 388ac69 docs: update
  • 1b934e4 Update docs/content/docs/adapters/mongo.mdx

📊 Changes

2 files changed (+6 additions, -3 deletions)

View changed files

📝 docs/content/docs/adapters/mongo.mdx (+4 -1)
📝 packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts (+2 -2)

📄 Description

Summary by cubic

Updates the MongoDB adapter docs example to show the optional client parameter and clarify that transactions require it. Prevents confusion when setting up database transactions.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4568 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/10/2025 **Status:** ✅ Merged **Merged:** 9/10/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/10/db-trx` --- ### 📝 Commits (3) - [`9846ecb`](https://github.com/better-auth/better-auth/commit/9846ecbb4d0cf91ed7db5719256a75420127b7db) docs: fix mongodb example - [`388ac69`](https://github.com/better-auth/better-auth/commit/388ac69f0e4b555ad89e05733db24b5d6498bdab) docs: update - [`1b934e4`](https://github.com/better-auth/better-auth/commit/1b934e42f170e05fc4bcacb86500e1f41bf4fed9) Update docs/content/docs/adapters/mongo.mdx ### 📊 Changes **2 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/adapters/mongo.mdx` (+4 -1) 📝 `packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts` (+2 -2) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updates the MongoDB adapter docs example to show the optional client parameter and clarify that transactions require it. Prevents confusion when setting up database transactions. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 21:59:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31053