[GH-ISSUE #6515] Support for creating multiple entries with adapter. #10536

Closed
opened 2026-04-13 06:44:56 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @codylittle on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6515

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Currently the transformInput function doesn't support passing an array of values to create operations.

Describe the solution you'd like

Support for either passing an array to adapter.create or a createMany operation.

Describe alternatives you've considered

Running multiple create operations within a transaction and Promise.all/allSettled. They both work, but just doesn't feel ideal

Additional context

No response

Originally created by @codylittle on GitHub (Dec 4, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6515 ### Is this suited for github? - [ ] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently the `transformInput` function doesn't support passing an array of values to `create` operations. ### Describe the solution you'd like Support for either passing an array to `adapter.create` or a `createMany` operation. ### Describe alternatives you've considered Running multiple `create` operations within a transaction and Promise.all/allSettled. They both work, but just doesn't feel ideal ### Additional context _No response_
GiteaMirror added the enhancementlocked labels 2026-04-13 06:44:56 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Dec 4, 2025):

Thank you for opening an issue! I understand that you’re suggesting an enhancement to support passing an array to adapter.create (or a dedicated createMany operation) instead of having to run multiple operations manually. Currently, the transformInput function handles single objects only, so using a transaction with Promise.all (or allSettled) is the workaround right now [1].

Could you share more details on your use case or how you envision the createMany functionality working? Tag @better-auth-agent if you would like an answer from the Agent.

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3609949192 --> @better-auth-agent[bot] commented on GitHub (Dec 4, 2025): Thank you for opening an issue! I understand that you’re suggesting an enhancement to support passing an array to adapter.create (or a dedicated createMany operation) instead of having to run multiple operations manually. Currently, the transformInput function handles single objects only, so using a transaction with Promise.all (or allSettled) is the workaround right now [[1]](https://github.com/better-auth/better-auth/issues/6446). Could you share more details on your use case or how you envision the createMany functionality working? Tag @better-auth-agent if you would like an answer from the Agent. _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) • [Discord](https://discord.gg/fG2XXEuQX3) • [GitHub](https://github.com/Skyvern-AI/Skyvern) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/fG2XXEuQX3) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/Skyvern-AI/Skyvern)
Author
Owner

@dosubot[bot] commented on GitHub (Mar 5, 2026):

Hi, @codylittle. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested an enhancement to support batch creation in the adapter, either by allowing an array input to adapter.create or by adding a createMany operation.
  • The current transformInput only supports single objects, limiting batch operations.
  • The maintainer suggested a workaround using transactions with Promise.all.
  • No further details on your use case or desired functionality have been provided.
  • The issue remains unresolved with no new developments.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of better-auth and if you can provide more details or confirm the need for this feature.
  • Otherwise, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:4006188681 --> @dosubot[bot] commented on GitHub (Mar 5, 2026): Hi, @codylittle. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested an enhancement to support batch creation in the adapter, either by allowing an array input to `adapter.create` or by adding a `createMany` operation. - The current `transformInput` only supports single objects, limiting batch operations. - The maintainer suggested a workaround using transactions with `Promise.all`. - No further details on your use case or desired functionality have been provided. - The issue remains unresolved with no new developments. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth and if you can provide more details or confirm the need for this feature. - Otherwise, this issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@github-actions[bot] commented on GitHub (Mar 31, 2026):

This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.

<!-- gh-comment-id:4165922648 --> @github-actions[bot] commented on GitHub (Mar 31, 2026): This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#10536