apollosoftwarexyz / cinnamon

Apollo Software's intuitive backend API framework.

Home Page:https://docs.apollosoftware.xyz/cinnamon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prepare migration to `Mikro-ORM` v6

SamJakob opened this issue · comments

See: https://mikro-orm.io/docs/next/upgrading-v5-to-v6

Main issues expected to be:

  • The connect parameter is no longer accepted in the init method. (This was never used and connecting to the database didn't behave as necessarily expected in Cinnamon due to an oversight, this is fixed in the upcoming v0.2.0).
  • The type option being removed in favor of driver exports.
  • The driver package is now the preferred way to import everything. (This might be worth abstracting in Cinnamon to maintain some level of database agnosticism).
  • ref() vs wrap() (not necessarily for framework code, but for documentation)
  • Similarly for require() calls for Migrator, EntityGenerator and Seeder
  • Greater reliance on passing initialization options to Mikro-ORM.init. Will need to re-work or double check options for init and for config.