mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-30 10:18:25 -05:00
fix: add supportsArrays to memory and mongodb adapters (#6984)
This commit is contained in:
@@ -26,6 +26,7 @@ export const memoryAdapter = (
|
||||
adapterName: "Memory Adapter",
|
||||
usePlural: false,
|
||||
debugLogs: config?.debugLogs || false,
|
||||
supportsArrays: true,
|
||||
customTransformInput(props) {
|
||||
const useNumberId =
|
||||
props.options.advanced?.database?.useNumberId ||
|
||||
|
||||
@@ -560,6 +560,7 @@ export const mongodbAdapter = (
|
||||
mapKeysTransformOutput: {
|
||||
_id: "id",
|
||||
},
|
||||
supportsArrays: true,
|
||||
supportsNumericIds: false,
|
||||
transaction:
|
||||
config?.client && (config?.transaction ?? true)
|
||||
|
||||
@@ -20,7 +20,7 @@ exports[`base context creation > should match config 1`] = `
|
||||
"disableTransformInput": false,
|
||||
"disableTransformJoin": false,
|
||||
"disableTransformOutput": false,
|
||||
"supportsArrays": false,
|
||||
"supportsArrays": true,
|
||||
"supportsBooleans": true,
|
||||
"supportsDates": true,
|
||||
"supportsJSON": false,
|
||||
|
||||
Reference in New Issue
Block a user