If you want to use another ORM/ODM (Sequelize, Objection.js, etc) or just do not want to use one at all, you can uninstall the
@foal/typeorm packages. The framework core is TypeORM-independent.
Using TypeORM has some advantages though:
- Foal offers built-in commands to generate, run and revert migrations with TypeORM.
- The Groups & Permissions system can only be used with this library as well as the
foal g rest-apicommand.
fetchUserfunction required by
TokenRequiredand often used with
JWTRequired. This function, which takes an id and returns a user or undefined, can easily be implemented with another ORM however.