Skip to content

docs: clarify that forRoot() options are required since v7#254

Merged
B4nan merged 1 commit into
masterfrom
docs/forroot-options-required
Apr 25, 2026
Merged

docs: clarify that forRoot() options are required since v7#254
B4nan merged 1 commit into
masterfrom
docs/forroot-options-required

Conversation

@B4nan

@B4nan B4nan commented Apr 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace the outdated note that forRoot() parameters can be omitted to fall back to the CLI config — since v7 the options must be provided explicitly (see the v6→v7 upgrading guide).
  • Add a small example showing how to import a config file and pass it to forRoot().

Closes #253

B4nan added a commit to mikro-orm/mikro-orm that referenced this pull request Apr 25, 2026
…7619)

## Summary
- Replace the outdated note in `usage-with-nestjs.md` claiming
`forRoot()` can be called without arguments to fall back to the CLI
config — since v7 the options must be passed explicitly (see [Upgrading
v6 →
v7](https://mikro-orm.io/docs/upgrading-v6-to-v7#mikroorminit-requires-options-parameter)).
- Updated both the current docs and the v7.0 versioned snapshot.

Companion to mikro-orm/nestjs#254.

Closes mikro-orm/nestjs#253
@B4nan B4nan merged commit 252744d into master Apr 25, 2026
6 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.

MikroOrmModule.forRoot params are no longer optional

1 participant