[PR #6984] [MERGED] fix: add supportsArrays to memory and mongodb adapters #7008

Closed
opened 2026-03-13 13:21:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6984
Author: @bytaesu
Created: 12/24/2025
Status: Merged
Merged: 12/25/2025
Merged by: @Bekacru

Base: canaryHead: 2025-12-24/fix/mongodb-memory-array


📝 Commits (2)

  • a02d906 fix: add supportsArrays to memory and mongodb adapters
  • 5463dda test: update snapshot

📊 Changes

3 files changed (+3 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts (+1 -0)
📝 packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts (+1 -0)
📝 packages/better-auth/src/context/__snapshots__/create-context.test.ts.snap (+1 -1)

📄 Description

It seems this configurations were missing in PR #6601


Summary by cubic

Added supportsArrays: true to the Memory and MongoDB adapters to correctly handle array fields. This fixes a missing config and prevents errors when reading or writing arrays.

Written for commit 5463dda5f6. Summary will update automatically on new commits.


🔄 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/6984 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 12/24/2025 **Status:** ✅ Merged **Merged:** 12/25/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-12-24/fix/mongodb-memory-array` --- ### 📝 Commits (2) - [`a02d906`](https://github.com/better-auth/better-auth/commit/a02d9061ab18ed3aab7f5d475559a8a6186a0ede) fix: add supportsArrays to memory and mongodb adapters - [`5463dda`](https://github.com/better-auth/better-auth/commit/5463dda5f67d2e477b7322ab7609f8150ce47a79) test: update snapshot ### 📊 Changes **3 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts` (+1 -0) 📝 `packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts` (+1 -0) 📝 `packages/better-auth/src/context/__snapshots__/create-context.test.ts.snap` (+1 -1) </details> ### 📄 Description It seems this configurations were missing in PR #6601 - Closes https://github.com/better-auth/better-auth/issues/6975 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added supportsArrays: true to the Memory and MongoDB adapters to correctly handle array fields. This fixes a missing config and prevents errors when reading or writing arrays. <sup>Written for commit 5463dda5f67d2e477b7322ab7609f8150ce47a79. Summary will update automatically on new commits.</sup> <!-- 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-03-13 13:21:02 -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#7008